in reply to Won Doc

The error goes away if I change:
if ($x eq $y) {print $fh{$x} @{ $testhash{$y}};}
to:
if ($x eq $y) {print {$fh{$x}} @{ $testhash{$y}};}
Notice the extra curlies around the filehandle; see print for an explanation.

Replies are listed 'Best First'.
Re^2: Won Doc
by Anonymous Monk on May 06, 2011 at 06:35 UTC
    Many thanks toolic!!!