in reply to switch statement for subroutines?
&$_ for @do_something;
This, of course, assumes that all the strings in @do_something have functions associated with them. Otherwise, Perl will die and complain.
However, you can get past that by doing something like:
*grins* A really neat thing about Perl OO.my $foo = Some::Class->new; $foo->$_ if $foo->can($_) for @do_something;
|
|---|