Roger answered why your code produces these warnings. Now I'd like to share with you why it doesn't work without -w: you editted the scripts in Windows and didn't convert them when you moved them (ftp upload in binary?). Some possible solutions are:
perl -i -pe's/\r$//' file.pl
However, I think this is a good thing that you've turned on warnings as it has made you aware of some bugs that may otherwise have gone unnoticed for a while.
antirice
The first rule of Perl club is - use Perl
The ith rule of Perl club is - follow rule i - 1 for i > 1
In reply to Re: print() on closed filehandle..
by antirice
in thread print() on closed filehandle..
by wolis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |