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

Re: Future Perl development

Thread Previous | Thread Next
Peter Scott
February 7, 2007 16:57
Re: Future Perl development
Message ID:
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 :-)

I've isolated the cause of the Tk test failure I reported to 
you.  Tk/ 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}'

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

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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About