Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^3: print() on closed filehandleby davis (Vicar) |
on Dec 14, 2004 at 15:57 UTC ( [id://414741]=note: print w/replies, xml ) | Need Help?? |
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.davis
It wasn't easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.
In Section
Seekers of Perl Wisdom
|
|