You don't need to open the DATA handle.
Your main problem is that you reopen $file to truncate and write with '>'. Open to append with '>>' and your previous writings will survive. You should probably just open once and leave the file open until you're finished.
After Compline,
Zaxo
In reply to Re: Help needed with file output and hashes.
by Zaxo
in thread Help needed with file output and hashes.
by Seventh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |