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

[perl #128225] substitution within (?{}) causes segmentation fault

Thread Previous | Thread Next
From:
=?UTF-8?B?RGFuaWVsIMiYdXRldQ==?= via RT
Date:
May 23, 2016 18:51
Subject:
[perl #128225] substitution within (?{}) causes segmentation fault
Message ID:
rt-4.0.18-14482-1464029474-1065.128225-14-0@perl.org
A somewhat related issue is the following:

### BEGIN-CODE ###

m<
    (?{
        m<(?{
            'print "Just another Perl hacker\n"'
        })>;

        s//$^R/ee;
    })
>x;

//;
//;
//;
//;
//;
//;
//;
//;
//;

### END-CODE ###

The output is "Just another Perl hacker", printed 10 times, for each empty match ("//").

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