in reply to hashes of arrays

Here's an alternate syntax to store an array ref: $hash{$_}{file_contents} = [ <FILE> ]; The result will be the same as the @{} form suggested above (except if $hash{$_}{file_contents} already has some non-array-ref value in it; the @{} form won't do the right thing in that case).