develooper Front page | perl.perl5.porters | Postings from April 2010

5.12 regression.

Thread Next
From:
Abigail
Date:
April 10, 2010 11:09
Subject:
5.12 regression.
Message ID:
20100410180913.GS17977@almanda

I ran 5.12-RC5 against t/japh/abigail.t. A couple of them failed because
split in scalar context no longer splits to @_.

However, there's another failure; a reduced version of it is:


    $ perl-5.10.1 -wE '$_ = "goto F.say chop;\n=X";F1:eval'
    X
    $ perl-5.12-RC5 -wE '$_ = "goto F.say chop;\n=X";F1:eval'
    X
    =


    ;
    p
    o
    h
    c
     
    y
    a
    s
    .
    F
     
    o
    t
    o
    g


followed by an infinite amount of newlines.

I haven't been able to reduce this to a smaller piece of code. But it 
looks like the eval is working on a copy of $_ which doesn't get updated
when the chop modifies $_.



Abigail

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