Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Possible precedence issue with control flow operator

by 1nickt (Canon)
on Jan 13, 2020 at 11:27 UTC ( [id://11111357]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -wE'sub foo{} sub bar{return foo() or die "died"} bar(
    +)'
    
    Possible precedence issue with control flow operator at -e line 1.
    
  2. or download this
    $ perl -Mstrict -wE'sub foo{} sub bar{return foo() || die "died"} bar(
    +)'
    
    died at -e line 1.
    
  3. or download this
    $ perl -Mstrict -wE'sub foo{} sub bar{return (foo() or die "died")} ba
    +r()'
    
    died at -e line 1.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found