in reply to Re: Would you use 'goto' here?
in thread Would you use 'goto' here?

eval string, from a mod_perl guy! I'd be shocked, if I didn't think you had a good reason. :)

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.