print $outfh{$host} $data;
In addition to Not_a_Number's solution by means of assigning to a temporary variable, another possible one is that given in perldoc -f print:
print { $outfh{$host} } $data;
In reply to Re^5: Seperating individual lines of a file
by blazar
in thread Seperating individual lines of a file
by tgrossner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |