Bug#825524: liblexical-underscore-perl: FTBFS with Perl 5.24: Can't use global $_ in "my"

Niko Tyni ntyni at debian.org
Fri May 27 13:00:51 UTC 2016


Package: liblexical-underscore-perl
Version: 0.003-1
Severity: important
User: debian-perl at lists.debian.org
Usertags: perl-5.24-transition
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=108203

This package fails to build with Perl 5.24 (currently in experimental.)

  Can't use global $_ in "my" at t/01basic.t line 12, near "my $_ "
  Can't use global $_ in "my" at t/01basic.t line 23, near "my $_ "
  Can't use global $_ in "my" at t/01basic.t line 28, near "my $_ "
  Execution of t/01basic.t aborted due to compilation errors.
  # Looks like your test exited with 255 before it could output anything.
 
Quoting perldelta.pod:

  Lexical $_ has been removed
    "my $_" was introduced in Perl 5.10, and subsequently caused
    much confusion with no obvious solution. In Perl 5.18.0, it was
    made experimental on the theory that it would either be removed or
    redesigned in a less confusing (but backward-incompatible) way. Over
    the following years, no alternatives were proposed. The feature has
    now been removed and will fail to compile.

A full build log is available at
  http://perl.debian.net/rebuild-logs/perl-5.24-throwaway/liblexical-underscore-perl_0.003-1/

-- 
Niko Tyni   ntyni at debian.org



More information about the pkg-perl-maintainers mailing list