in reply to print() on closed filehandle
You don't check the status of open()ing OUTPUT_FILE. Change your open to read something like:
I've also used the 3-argument form of open().open (OUTPUT_FILE, ">", $outputfile) or die "Unable to open $outputfile: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print() on closed filehandle
by Win (Acolyte) on Dec 14, 2004 at 15:55 UTC | |
by ikegami (Patriarch) on Dec 14, 2004 at 16:14 UTC | |
by Win (Acolyte) on Dec 14, 2004 at 16:28 UTC | |
by davido (Cardinal) on Dec 14, 2004 at 16:37 UTC | |
by ikegami (Patriarch) on Dec 14, 2004 at 16:53 UTC | |
by Win (Acolyte) on Dec 14, 2004 at 17:10 UTC | |
| |
by fglock (Vicar) on Dec 14, 2004 at 16:46 UTC | |
by Win (Acolyte) on Dec 14, 2004 at 17:08 UTC | |
| |
by davis (Vicar) on Dec 14, 2004 at 15:57 UTC | |
by Win (Acolyte) on Dec 14, 2004 at 16:12 UTC | |
by davis (Vicar) on Dec 14, 2004 at 16:19 UTC | |
by Win (Acolyte) on Dec 14, 2004 at 16:57 UTC |