http://www.perlmonks.org?node_id=762704


in reply to reading file in Hash

lets golf.
perl -e 'print<<EOF 1 2 3 a b c d e f g h i EOF ' | perl -MData::Dumper -lane '1==$. and @h=@F and next;my $i; push @ +{$v{$h[$i++]}},$_ for @F}{print Dumper(\%v)'

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});