my $in = $cgi->param('in'); my @actions = qw(this that foo bar zzz); { no strict 'refs'; foreach(@actions) { $_->() if($_ eq $in); } }
But I like chromatic's suggestion better.
'kaboo
In reply to (no strict) Re: use slack;
by mwp
in thread use slack;
by epoptai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |