You don't show us the code where you open the file. Without that I'd guess that you've only opened the file for reading or something like that.
If you're attempting to read or write a filehandle which isn't open in the right mode, then Perl will tell you exactly what the problem is if you ask it to. You should always start your Perl scripts with
#!/your/path/to/perl -w use strict;
and then Perl with give you all the help it can.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: File Access
by davorg
in thread File Access
by dmckee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |