Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: opened file being overwritten

by Anonymous Monk
on Dec 14, 2012 at 08:23 UTC ( #1008799=note: print w/replies, xml ) Need Help??


in reply to Re: opened file being overwritten
in thread opened file being overwritten

The warnings tell you not everything is fine :)

If you run the code through B::Deparse or even perlcritic and you'll see some more problems with the code

The most obvious that many have mentioned is using the "||" operator ( C-style logical or ) instead of the "or" operator ( Logical or )

See perltrap/Common Perl Pitfalls

Hi

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2022-05-23 21:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?