Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Control Flow - Multiple returns or nested conditionals

by moritz (Cardinal)
on Oct 07, 2010 at 16:17 UTC ( #864030=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub err {
        { status => 0, error => shift(@_), external_id => undef);
    ...
       }
       return {status=>1, error=>undef, external_id=>$external_id};
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2021-07-26 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?