in reply to Re^4: getfile( $filename )
in thread getfile( $filename )
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
|
|---|