in reply to Re: opened file being overwrittenin 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
www.com | www.net | www.org
Results (82 votes). Check out past polls.