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']});

Replies are listed 'Best First'.
Re^2: reading file in Hash
by Anonymous Monk on May 08, 2009 at 15:06 UTC
    did you say "golf" and "my" in the same sentence?