On Thu, 24 Feb 2022 12:01:24 +0100 Graham Knop <haarg@haarg.org> wrote: > Shouldn't it be possible for perl to optimize > > $string = trim($string); > > internally to operate in place? This would offer the benefits of in > place operation, with the interface most people seem to prefer. Not only is it *possible* but my original branch actually implemented this all those months ago. ;) -- Paul "LeoNerd" Evans leonerd@leonerd.org.uk | https://metacpan.org/author/PEVANS http://www.leonerd.org.uk/ | https://www.tindie.com/stores/leonerd/Thread Previous | Thread Next