in reply to Storing open filehandles in a hash
while (<>) { defined $fhs{$conn} or open($fhs{$conn}, '>', "conn-$conn") or die("Unable to create file conn-$conn: $!\n"); print { $fhs{$conn} } $_; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Storing open filehandles in a hash
by kovacsbv (Novice) on Nov 20, 2008 at 14:59 UTC | |
by ikegami (Patriarch) on Nov 20, 2008 at 22:14 UTC |