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

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

Thread Next
Edward Peschko
August 22, 2013 19:45
more regressions in perl-5.18.1 ( B::Lint, $Config{libpth} )
Message ID:

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

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..


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