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

Re: Revisiting trim

Thread Previous | Thread Next
From:
David Nicol
Date:
May 27, 2021 18:01
Subject:
Re: Revisiting trim
Message ID:
CAFwScO_=AM8WMZAhK8WxyyHziukTVEUgr9cqr4udF-2++QeEnw@mail.gmail.com
I'm opposed to extending core, unless everything in for instance List::Util
is going to start being in there too. What's wrong with including some kind
of standard String::Util that could have all these things that can easily
be written with a single s/// ?

trim
rtrim
ltrim
concat
extend
...

and everything would operate in-place in void context and return copies
otherwise?

Thread Previous | 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