You haven't opened the output for write.
it's clearer to use the 3 parameter version of open like this :-
open ( my $fh,'>',$filename) or die "$filename : $!";
Check out the help for open
In reply to Re: Checking for Files
by RichardK
in thread Checking for Files
by akrrs7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |