On Mon, Nov 23, 2020 at 7:46 PM L A Walsh <Astara@tlinx.org> wrote: > On 2020/11/18 08:37, Dan Book wrote: > > On Wed, Nov 18, 2020 at 3:17 AM L A Walsh <Astara@tlinx.org > > <mailto:Astara@tlinx.org>> wrote: > > The documentation added by the PR explains it. It removes leading and > > trailing whitespace. > ---- > That begs the questions: > 0) if whitespace, that includes tabs, LF's CR's, i.e. > any thing '\s' matches? > 1) What if I only want to trim at beginning or end? > 2) Why not support a regex like, say, TCL does? > > I.e. why should a perl command be limited to only trimming > whitespace? > This has been discussed in the feature request ticket, summed up at https://github.com/Perl/perl5/issues/17952#issuecomment-658462652. -DanThread Previous | Thread Next