develooper Front page | perl.perl5.porters | Postings from March 2021

RE: Let's talk about trim() so more

Thread Previous | Thread Next
Konovalov, Vadim
March 28, 2021 05:59
RE: Let's talk about trim() so more
Message ID:
> From: Christian Walde 
> Nope, the motivation is to replace this:
> $a =~ s/^\s+//; $a =~ s/\s+$//;
> Which is like
> 1600+ times on cpan.

My CPAN modules do not count: I also use s/^\s+|\s+$/g often 
At the same time I am opposed to having trim as part of perl syntax. (string::trim or another package is better, so it will not conflict, but I doubt I will ever use it)

I don't think I am alone with my view

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About