P is for Practical | |
PerlMonks |
Re^3: Split tab-separated file into separate files, based on column name (updated)by jcb (Parson) |
on Aug 28, 2020 at 01:17 UTC ( [id://11121135]=note: print w/replies, xml ) | Need Help?? |
Try changing '>' to '>>'. If I remember correctly, open will silently reopen an already open handle. Since you are using truncating write mode, each file gets truncated every time it is opened.
In Section
Seekers of Perl Wisdom
|
|