in reply to Re: Would you use 'goto' here?
in thread Would you use 'goto' here?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Would you use 'goto' here?
by ask (Pilgrim) on Dec 06, 2001 at 19:24 UTC |