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

text:: ? WAS Re: Looking for someone to adopt adding trim() to core

Thread Previous | Thread Next
From:
Felipe Gasper
Date:
February 15, 2021 15:47
Subject:
text:: ? WAS Re: Looking for someone to adopt adding trim() to core
Message ID:
D32123E3-7C78-4660-9066-7CD88E1E63C2@felipegasper.com

> On Feb 15, 2021, at 7:30 AM, demerphq <demerphq@gmail.com> wrote:
> 
> cheers,
> Yves
> $ ./perl -le'print scalar::trim(" foo ")'
> foo

Yves, what would you think of calling it text::trim() instead of scalar::trim()? This function doesn’t really make sense for, e.g., references, after all.

-F
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