Nothing prevents you from inserting code as complex as you need into the map:
... = map { chomp; my ($right,$left)= split'='; if ($left) { ($right,$ +left) } else { () } } <$fh>;
In reply to Re: map a hash with a default value or exclude
by jethro
in thread map a hash with a default value or exclude
by kayahk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |