in reply to Re: while(<>) { ... } considered harmful
in thread while(<>) { ... } considered harmful
(which is already pushing legibility). Basically when you build one list out of another, non-destructively, map is the ticket. It can be in other cases as well, but those can often go either way.my @idx; /(id\d+)/ && push @idx, $1 for @items;
Makeshifts last the longest.
|
---|