http://www.perlmonks.org?node_id=392234


in reply to •Re: improve ugly flow control
in thread improve ugly flow control

That's a neat idea. Unfortunately, in my real code, the $hash{$_} test is actually something expensive, so I need to stop as soon as one of the options works. I should have made a better example.

Replies are listed 'Best First'.
•Re^3: improve ugly flow control
by merlyn (Sage) on Sep 20, 2004 at 05:55 UTC