in reply to Array in a hash

It is possible, of course. You need to read more about Perl's complex data structures. Perldsc should start you off. Hints:
$hash{filename} = \@array; print $hash{filename}[0];