I'd still prefer subrefs, can, and maybe even some symbolic references with map:
%commands = map { $_ => \&{ $_ } } keys %commands;
Season to taste.
Update: Not that eval is slow, but that eval string has some memory leaks not fixed until 5.8. That can be nasty in mod_perl.
In reply to Re: Re: Would you use 'goto' here?
by chromatic
in thread Would you use 'goto' here?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |