develooper Front page | perl.perl5.porters | Postings from November 2006

[perl #6006] Regexp replaces using large replacement variables fail some of

Thread Previous | Thread Next
From:
yves orton via RT
Date:
November 17, 2006 07:47
Subject:
[perl #6006] Regexp replaces using large replacement variables fail some of
Message ID:
rt-3.5.HEAD-1641-1163778432-1920.6006-14-0@perl.org
This is a parsing bug somewhere and not really a regex bug.

I submitted a TODO test for this in another patch. (rt_36909.patch)

The problem is illustrated by this:

    /(((((((((x)))))))))(z)/;	# clear $10
    s/(((((((((x)))))))))(y)/${10}/;
    is($_,"y","RT#6006: \$_ eq '$_'");

For some reason ${10} doesnt get parsed the same way as $10 would.

Cheers,
Yves


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