in reply to Storing open filehandles in a hash

Avoid the globs and use IO::File instead. Then everything will work fine.
while (<>){ # do some stuff unless defined ( $fhs{$conn} ) { $fhs{$conn} = IO::File->new(); die $! unless $fhs{$conn}->open(">conn-$conn"); } $fhs{$conn}->print ($_); }


Update: added code


holli, /regexed monk/