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

Re: YA smartmatch proposal

Thread Previous | Thread Next
Dave Mitchell
October 14, 2015 10:15
Re: YA smartmatch proposal
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About