Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: improve ugly flow control (goto considered useful)

by Pragma (Scribe)
on Sep 19, 2004 at 10:53 UTC ( #392160=note: print w/ replies, xml ) Need Help??


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

This would have been obvious 30 years ago; perhaps less so today:

foreach my $try (@options) { next unless exists $hash{$try}; do_something($try); goto SUCCESS; } log_failure(); SUCCESS: ...


Comment on Re^2: improve ugly flow control (goto considered useful)
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://392160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-07-04 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls