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

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

Thread Previous | Thread Next
Aristotle Pagaltzis
May 30, 2016 13:49
Re: [perl #128225] substitution within (?{}) causes segmentationfault
Message ID:
* Dave Mitchell <> [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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About