There may be a more elegant solution, but graff's code works if you change the line:
print $outfh{$host} $data;to:
my $fh = $outfh{$host}; print $fh $data;
dave
In reply to Re^5: Seperating individual lines of a file
by Not_a_Number
in thread Seperating individual lines of a file
by tgrossner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |