|
|
| "be consistent" | |
| PerlMonks |
Re: Writing a new file in Perlby zwon (Monsignor) |
| on Jul 05, 2012 at 11:12 UTC ( #980029=note: print w/ replies, xml ) | Need Help?? |
|
Each time you call open, the file gets truncated. Either open it before the loop, and close after the loop, or open file for appending:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||