On Sat, 27 Mar 2021 01:53:54 +0100, B. Estrade <brett@cpanel.net> wrote: > At the end of the day, it seems to me that the real motivation for this is to eliminate this idiom: >chomp($foo); > $foo =~ s/^ *//g; # or however YOU do it Nope, the motivation is to replace this: $a =~ s/^\s+//; $a =~ s/\s+$//; Which is like 1600+ times on cpan. https://grep.metacpan.org/search?q=%5C%5E%5C%5Cs%5C%2B%5B%5E%5C0%5D%2B%5C%5Cs%5C%2B%5C%24%7C%5C%5Cs%5C%2B%5C%24%5B%5E%5C0%5D%2B%5C%5E%5C%5Cs%5C%2B&qd=&qft= That said, i also recommend asking the author, Scott, for his motivation. :) -- With regards, Christian WaldeThread Previous | Thread Next