Here's the hash of subroutine references:
my %actions = ( this => \&this, that => \&that, foo => \&foo, bar => \&bar, zzz => \&sleepytime, ); # ooh, tricky foreach (@user_actions) { if (defined(my $sub_ref = $actions{$_})) { $sub_ref->(); } }
In reply to Re: use slack;
by chromatic
in thread use slack;
by epoptai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |