Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Possible precedence issue with control flow operator

by LanX (Saint)
on Jan 13, 2020 at 17:11 UTC ( [id://11111361]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    (
       ( return something() ) 
       or 
       ( croak "something didn't work" )
    );
    
  2. or download this
    > perl
    return
    __END__
    Can't return outside a subroutine at - line 2.
    
  3. or download this
     
    return ( 
        ( something() ) 
        or 
        ( croak "something didn't work" )
    );
    
  4. or download this
        # die of errors (from perspective of caller)
        croak "We're outta here!";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found