develooper Front page | perl.perl5.porters | Postings from November 2020

RE: Looking for someone to adopt adding trim() to core

Thread Previous | Thread Next
Konovalov, Vadim
November 11, 2020 16:34
RE: Looking for someone to adopt adding trim() to core
Message ID:
Absolutely agree.
Please add my voice to the pool, and count it carefully.

-----Original Message-----
From: demerphq 
Sent: Wednesday, November 11, 2020 6:02 PM
To: Scott Baker
Cc: Perl5 Porters
Subject: Re: Looking for someone to adopt adding trim() to core

Why does it need to be added to the language as a new keyword? You
could add it via universal.c to the SCALAR namespace (for example) and
have it accessible without any feature horribleness. I believe we have
already approved that such namespaces are acceptable. And additions to
them do not need any feature bodge and are trivially made backwards

print SCALAR::trim($str);

I vote "no" to this as a feature. But I am fine with it being in core
via universal.c and the right namespace.


On Thu, 5 Nov 2020 at 19:09, Scott Baker <> wrote:
> Team:
> I lack the time and expertise to complete the PR I started to add `trim()` to core. I'm hoping someone with more experience would be interested in taking over and complete the PR for me. It's largely complete already.
> LeoNerd wrote the C implementation and I wrote the docs and the tests. The PR needs some polish and rebasing and then it will be ready to land. If you're familiar with the Perl build process this should be a simple task for you.
> If you're interested in adopting this PR please reach out to me and we'll figure out the next steps.
> - Scott

perl -Mre=debug -e "/just|another|perl|hacker/"

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