Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Control Flow - Multiple returns or nested conditionals

by TomDLux (Vicar)
on Oct 07, 2010 at 20:48 UTC ( #864084=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $datafile ... 
    LINE:
    ...
        next LINE if ( $line =~ m{\A \s* #}xms;
        process $line;
    }
    
  2. or download this
    if ( option_A( $line ) ) {
       $retval = do_this_complicated_thing( $line );
    ...
        $retval = 42;
    }
    return $retval;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (1)
As of 2021-07-27 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?