develooper Front page | perl.perl5.porters | Postings from October 2013

Re: more regressions in perl-5.18.1 ( B::Lint, $Config{libpth} )

Thread Previous
From:
Andreas Koenig
Date:
October 24, 2013 06:42
Subject:
Re: more regressions in perl-5.18.1 ( B::Lint, $Config{libpth} )
Message ID:
87iownp3ul.fsf@k85.linux.bogus
Ricardo Signes <perl.p5p@rjbs.manxome.org> writes:

> * Edward Peschko <horos11@gmail.com> [2013-08-21T13:42:37]
>> It looks like there are some more regressions in 5.18.1:
>
> When you say "in 5.18.1" do you mean "since 5.18.0" or "since 5.16.x and I
> haven't tested 5.18.0"?

(1) B::Lint
-----------

I cannot confirm the B::Lint regression. It looks like a long standing
bug in B::Lint that it does not recognize the "implicit scalar context"
on lexicals.

@Ed: can you provide a better test case?

% for perl in perl5.18.1 perl5.16.3 perl5.14.4 perl5.12.5 ; do
  $perl -MB::Lint -le 'print $^V; print $B::Lint::VERSION'
  $perl -MO=Lint,context -le '           length(@array)' ;
  $perl -MO=Lint,context -le 'my @array; length(@array)' ;
done                                                      
v5.18.1
1.17
Implicit scalar context for array in length at -e line 1
-e syntax OK
-e syntax OK
v5.16.3
1.14
Implicit scalar context for array in length at -e line 1
-e syntax OK
-e syntax OK
v5.14.4
1.13
Implicit scalar context for array in length at -e line 1
-e syntax OK
-e syntax OK
v5.12.5
1.11_01
Implicit scalar context for array in length at -e line 1
-e syntax OK
-e syntax OK


(2) libpth
----------

I see no difference between my 4 perls with regard to libpth, but maybe
I'm missing something or it is more architecture specific.

@Ed: can you provide more detail?

% for perl in perl5.18.1 perl5.16.3 perl5.14.4 perl5.12.5 ; do
  $perl -MConfig -le 'print $^V; print $Config{libpth}'  
done                                                  
v5.18.1                                               
/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
v5.16.3
/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
v5.14.4
/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
v5.12.5
/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib


-- 
andreas

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About