develooper Front page | perl.perl5.porters | Postings from February 2007

Re: Future Perl development

Thread Previous | Thread Next
From:
Peter Scott
Date:
February 7, 2007 16:57
Subject:
Re: Future Perl development
Message ID:
6.2.3.4.2.20070207140301.027b9658@mail.webquarry.com
At 01:12 PM 2/6/2007, Nicholas Clark wrote:
>As you've all clearly demonstrated that you care about Perl 5 development,
>would you all be so kind as to download this snapshot, install it on your
>development servers, test it with your production code, and report any
>issues. I'd be grateful for reports of regressions against 5.8.x, as I tend
>to find them easier to fix before the release :-)
>
>   http://www.ccl4.org/~nick/P/perl-30145.tar.bz2

I've isolated the cause of the Tk test failure I reported to 
you.  Tk/Trace.pm line 89 contains the line

         foreach my $aref ( reverse @$call[ 1 .. $#{@$call} ] ) {

in Tk::Trace::store().  The construct $#{@$ref} is evaluated 
differently in perl5.8.8 and your snapshot:

$ perl5.8.8 -le '$x = [3..5]; print $#{@$x}'
2

$ perl-30145 -le '$x = [3..5]; print $#{@$x}'
-1


The more conventional construct $#$ref is evaluated 
identically.  $#{@$ref} seems like it ought to be illegal, but clearly 
hasn't been hitherto, and I couldn't find anything in your changelog 
saying it had now been outlawed.  Case referred to department of 
backward compatibility.


-- 
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com/
http://www.perlmedic.com/


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