You only have one %$record, as declared at the top.
I'm guessing that you probably want to have a new record for each file in the outer while loop, so put the my $record = {} inside that loop.
In reply to Re: array of hashes use
by Anonymous Monk
in thread array of hashes use
by salatconed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |