in reply to Would you use 'goto' here?
Once in a while I've used something like
to avoid the if ($command eq "foo") { &foo } elsif (...) thing. I think I picked it up from Jim Winsteadif (exists $commands{$command}) { my ($result) = eval "&$command"; ... }
- ask
-- ask bjoern hansen, http://ask.netcetera.dk/ !try; do();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Would you use 'goto' here?
by chromatic (Archbishop) on Dec 06, 2001 at 07:36 UTC | |
by ask (Pilgrim) on Dec 06, 2001 at 19:24 UTC | |
Re: Re: Would you use 'goto' here?
by blakem (Monsignor) on Dec 06, 2001 at 07:34 UTC |
In Section
Seekers of Perl Wisdom