You're assuming that each id only occurs once per file.
open $out_fh, '>>', $id or die $!;
… might be better.
In reply to Re^2: I'm trying to print the contents of a hash to newly created files
by tobyink
in thread I'm trying to print the contents of a hash to newly created files
by Peter Keystrokes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |