in reply to Howto avoid large hard-coded else-if function calls
Here's another way. Its suitability is something you'd have to decide...
$func_com =~ y/ABCDE//cd; $func_com =~ s/(.)/func_$1();/g; eval $func_com;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Howto avoid large hard-coded else-if function calls
by jdporter (Paladin) on Jun 25, 2007 at 13:13 UTC | |
|
Re^2: Howto avoid large hard-coded else-if function calls
by BrowserUk (Patriarch) on Jun 25, 2007 at 12:15 UTC |