Why not my @result = map scalar(chomp, $_), <$FH>?
That use of scalar gives me the creeps! Isn't this equivalent and less obfuscated?
my @result = map {chomp; $_} <$FH>;
Update: or for that matter whats wrong with chomp(my @result = <$FH>);
--
Murray Barton
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho
In reply to Re^5: getfile( $filename )
by greenFox
in thread getfile( $filename )
by harleypig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |