Your usage of map is fine - but it isn't for chomp.
%hash = map { chomp; my ( $a, $b) = split / = /; $a => $b } <INF>;
should do. update: note that $_ is implicit for chomp and split.
In reply to Re: Probably an easy map question
by shmem
in thread Probably an easy map question
by cosmicperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |