Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Variable assignment after logical OR

by FunkyMonk (Chancellor)
on Oct 02, 2007 at 18:58 UTC ( [id://642205]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open FILE, ">test.txt" or $failed_flag = 1;
    
  2. or download this
    open( FILE, ">test.txt" ) || $failed_flag = 1;
    
  3. or download this
    open my $FILE, ">", "test.txt" or $failed_flag = 1;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-26 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found