go ahead... be a heretic | |
PerlMonks |
Re: Re: Would you use 'goto' here?by chromatic (Archbishop) |
on Dec 06, 2001 at 07:36 UTC ( [id://129847]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|