open(OUT,">/foo.csv") or die "Cannot open output file: $!";
Then when you run the script you'll see a message indicating what exactly is wrong. For example, if I run the above code without permission to open '/foo.csv' I'll see:
Cannot open output file: Permission denied
-sam
In reply to Re: What the @#%* lost again!
by samtregar
in thread problem opening and reading from a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |