$! is a special variable that returns the error. It'll tell you why you couldn't open the file.open FILE, ">bob.txt" or die "Could not open file: $!\n";
In reply to Re: Creating files
by chromatic
in thread Creating files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |