cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
Thoughts?my $subtext = "&subby${var1}_text_$var2();"; eval $subtext;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling subroutines based on variable names...
by TGI (Parson) on Apr 04, 2008 at 23:55 UTC | |
|
Re: Calling subroutines based on variable names...
by rhesa (Vicar) on Apr 04, 2008 at 23:56 UTC | |
|
Re: Calling subroutines based on variable names...
by BrowserUk (Patriarch) on Apr 04, 2008 at 23:54 UTC | |
|
Re: Calling subroutines based on variable names...
by dragonchild (Archbishop) on Apr 05, 2008 at 01:40 UTC | |
|
Re: Calling subroutines based on variable names...
by repellent (Priest) on Apr 05, 2008 at 17:19 UTC | |
|
Re: Calling subroutines based on variable names...
by planetscape (Chancellor) on Apr 06, 2008 at 05:27 UTC |