Perl open()
Dear perl programmers,
When using open(), please don't use:
open FILE, "$file" or die "couldn't open file\n";
It really helps if you tell us what file you're trying to open and what went wrong. The correct error message is:
open FILE, "$file" or die "could not open $file: $!\n";
Thank you.