while (<>){ # do some stuff unless defined ( $fhs{$conn} ) { $fhs{$conn} = IO::File->new(); die $! unless $fhs{$conn}->open(">conn-$conn"); } $fhs{$conn}->print ($_); }
In reply to Re: Storing open filehandles in a hash
by holli
in thread Storing open filehandles in a hash
by jpfarmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |