According to the Dump, $file is an AoH (Array of Hashes) calling foreach $t(keys %$file) tries to refer to the array as a hash. You need to say
foreach $t(@{$file}) { foreach $tt(keys %{$t}){ print "\nt= $tt v=" . $t->{$tt}; } }
Stop saying 'script'. Stop saying 'line-noise'.
We have nothing to lose but our metaphors.
In reply to Re: bad index while coercing array into hash
by Erez
in thread bad index while coercing array into hash
by js1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |