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.