Hi all

I have a code like:

foreach my $key ( ... ) {
   my $sub = "get_$key";
   $self->$sub;
   ...
}

If I can do this, I can also do it without the variable $sub.

What is the syntax? please

Best Regards
Marcos Rebelo

-- 
Marcos Rebelo
http://www.oleber.com/
Milan Perl Mongers leader https://sites.google.com/site/milanperlmongers/
Webmaster of http://perl5notebook.oleber.com

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to