develooper Front page | perl.perl5.porters | Postings from May 2016

Re: [perl #128225] substitution within (?{}) causes segmentationfault

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
May 30, 2016 13:49
Subject:
Re: [perl #128225] substitution within (?{}) causes segmentationfault
Message ID:
20160530134906.GA89336@plasmasturm.org
* Dave Mitchell <davem@iabyn.com> [2016-05-30 15:09]:
> As has been pointed out elsewhere in this ticket, an empty pattern is
> interpreted as the "last successful match". The re-eval mechanism
> takes this as being the currently executing pattern, and so you get
> infinite recursion.

Is it possible to detect this case and die instead? It wouldn’t do what
the user likely expected it to even if it worked, after all.

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