in reply to Re^2: print() on closed filehandle
in thread print() on closed filehandle
The correct answer is: "Try it, or read perldoc -f open". The short answer is that using ">" in your open will (attempt to) open the file, clobbering (ie removing) its contents, or creating the file anew if necessary.
Update: added documentation pointer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: print() on closed filehandle
by Win (Novice) on Dec 14, 2004 at 16:12 UTC | |
by davis (Vicar) on Dec 14, 2004 at 16:19 UTC | |
by Win (Novice) on Dec 14, 2004 at 16:57 UTC |