Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: Number of times I've used goto in Perl (early return)

by tye (Sage)
on Mar 26, 2015 at 01:32 UTC ( #1121353=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub do_lots_and_log {
        ...
    ...
    failed:
        log("boo!");
    }
    
  2. or download this
    sub do_lots_and_log {
        if( do_lots(...) ) {
    ...
        ...
        return 1;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2019-11-16 01:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (85 votes). Check out past polls.

    Notices?