I need some guidance with the following Perl code. When I leave the no strict \'refs\', the sub works fine. But if the no strict \'refs\'
no strict \'refs\'
sub
Don't assign $fh = $_ it's not doing anything useful.
$fh = $_
@FH should be %FH and instead of the push try:
@FH
%FH
push
$FH{ $_ } = $fh
Replace the $1 with $FH{ $1 }.
$1
$FH{ $1 }