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

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

Thread Next
From:
Edward Peschko
Date:
August 22, 2013 19:45
Subject:
more regressions in perl-5.18.1 ( B::Lint, $Config{libpth} )
Message ID:
CAH+_n-4x0=DYNKgNn1LjOhpD_hbXzpkUv6UEwUPdRdAO+shL2w@mail.gmail.com
All,

It looks like there are some more regressions in 5.18.1:

1. $Config{libpth} no longer contains <<prefix>>/lib and <<prefix>>/lib64
in the list of paths. Hence if you install perl in a non-standard location,
subsequent CPAN packages based on libpth fail to install because the third
party libs can't be located.

2. B::Lint no longer works in finding constructs like (length(@array) > 1)
- it fails when the variables are lexicals. EG:

length(@array) == 1 # Lint finds this.

my @array; length(@array) == 1 # Lint does not find this

I wouldn't mind #2 so much except for the fact that perlcritic doesn't have
rules for constructs like these - and it looks like the backends are tied
in to perl's parsing at a much more intimate level using B:: than with
perlcritic.

If there are ways around #2 using perlcritic, please let me know - i've got
a bunch of perl newbies that will be using perl-5.18.1 and am looking for
an easy way to support them not doing these common types of mistakes..

Ed

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