in reply to Re: Help Me!
in thread Help Me!
You should usually use the three argument form of open and lexically scoped filehandles and you should probably include the file name in the error message so you know which file failed to open.Actually, it's quite common that it doesn't matter whether one uses 2-arg, or 3-arg open. This is one of the cases.
As for the error message, considering the program only tries to open one file, with a fixed name, it should be bloody obvious which file failed to open. "Should include the file name" is a much too strong.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Help Me!
by GrandFather (Saint) on Apr 10, 2011 at 07:51 UTC |