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

Re: Variable assignment after logical OR

by Eimi Metamorphoumai (Deacon)
on Oct 03, 2007 at 19:07 UTC ( #642480=note: print w/replies, xml ) Need Help??


in reply to Variable assignment after logical OR

Others have told you what's wrong with your code, but I'd like to mention that there are other options besides a flag value and a subroutine. In particular, I would suggest something like
unless(open FILE, ">test.txt"){ #error handling code goes here }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2020-10-21 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (217 votes). Check out past polls.

    Notices?