while (<$in>) { chomp; my @data = split(/\s*=\s*/); $hash{$data[0]} = $data[1]; };
edit: more readable:
while (<$in>) { chomp; my ($key, $value) = split(/\s*=\s*/); $hash{$key} = $value; };
In reply to Re: why aren't I see the hash while using dump?
by FreeBeerReekingMonk
in thread why aren't I see the hash while using dump?
by perlynewby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |