develooper Front page | perl.perl6.language | Postings from January 2001

RFC195: Do not remove 'chop' PLEASE!

Thread Next
From:
root
Date:
January 27, 2001 05:11
Subject:
RFC195: Do not remove 'chop' PLEASE!
Message ID:
01012715473800.06383@marc.manour.com

Hi,

I read RFC195 suggesting to drop 'chop' and go with 'chomp'.
What does 'chop' have anything to do with 'chomp'?
I'm totally oppose to that. Consider:

my $s;
map { /\S/ && $s .= "$_ " } split(/\s+/,@_);
chop($s);
return $s;

Thanks,
Marc K.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About