To make it look more pretty try:
foreach my $file (@files) { $file->{fh}->close(); }
Update: Changed close to close() to improve readability.
In reply to Re^3: Filehandle in hash value gets lost
by Ionizor
in thread Filehandle in hash value gets lost
by mr. jaggers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |