laziness, impatience, and hubris | |
PerlMonks |
Re: Getting duplicate file contents in perlby BillKSmith (Monsignor) |
on Sep 13, 2021 at 13:38 UTC ( [id://11136718]=note: print w/replies, xml ) | Need Help?? |
Your output file is already in the directory when you glob so your output file is treated as an input. Move the glob before the open.
Bill
In Section
Seekers of Perl Wisdom
|
|