or instead of using the ?: in the "decoding" map for the elimination case you could instead use a grep:
%{$self->{info}} = map {@$_} grep {defined $_->[1]} map {chomp; [split +'='];} <$fh>;
In any case generating the array ref doesn't actually seem to be a win in terms of succinctness or comprehensibility.
In reply to Re^2: map a hash with a default value or exclude
by GrandFather
in thread map a hash with a default value or exclude
by kayahk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |