develooper Front page | perl.perl5.porters | Postings from October 2015

Re: YA smartmatch proposal

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
October 14, 2015 10:15
Subject:
Re: YA smartmatch proposal
Message ID:
20151014101534.GR16789@iabyn.com
On Tue, Oct 13, 2015 at 06:43:05PM +0200, Abigail wrote:
> Instead of warning, can't it be optimized? I mean, if there's logic 
> that determines "I'm now going to clone a regex, which I will throw
> away right away, so let's warn", can't it just not clone the regexp,
> and act as m{}?

Probably, yes. The same would apply to $s =~ qr/.../.

-- 
Monto Blanco... scorchio!

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