in reply to Re: use slack;
in thread use slack;

Since the original intent appeared to be to run just one subroutine, you can probably even lose the subroutine in chromatics example:
my $in = param('in'); my %actions = ( this => \&this, that => \&that, foo => \&foo, bar => \&bar, zzz => \&sleepytime, ); defined(my $sub_ref = $actions{$in}) && $sub_ref->() ;
-mark