develooper Front page | perl.perl5.porters | Postings from August 2012

[perl #114040] Multiline constructs in regexp blocks

Thread Next
From:
Father Chrysostomos via RT
Date:
August 22, 2012 16:10
Subject:
[perl #114040] Multiline constructs in regexp blocks
Message ID:
rt-3.6.HEAD-11172-1345677018-1422.114040-14-0@perl.org
On Sun Jul 08 14:18:36 2012, sprout wrote:
> These all fail to parse with bleadperl, but work in 5.16:

> # deer hocks
> /(?{ <<END
> END
> })/;

Now fixed by 5097bf9b8 and db4442662555874019, except for this, which
has always crashed and still does:

/(?{s||${<<END}|
END
})/

This case, however, crashes now (as of the re-eval jumbo fix):

/(?{m|${<<END}|
END
})/

whereas it used to do this:

Can't find string terminator "
END" anywhere before EOF at (re_eval 1) line 1.
Compilation failed in regexp at - line 3.

or, before, 5.14:

panic: top_env

So we still have a regression here.

-- 

Father Chrysostomos


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