-markmy $in = param('in'); my %actions = ( this => \&this, that => \&that, foo => \&foo, bar => \&bar, zzz => \&sleepytime, ); defined(my $sub_ref = $actions{$in}) && $sub_ref->() ;
In reply to markjugg: re: use slack;
by markjugg
in thread use slack;
by epoptai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |