From: Graham Knop Date: Mon, 4 Nov 2013 21:37:21 +0000 (-0500) Subject: be compatible with perl 5.6 X-Git-Tag: 1.008026~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=387f80220829f113007b021a7cbfa7e6bb209f01;p=p5sagit%2Flocal-lib.git be compatible with perl 5.6 --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index 34e5806..a634a24 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -3,8 +3,7 @@ use warnings; package local::lib; -use 5.008001; # probably works with earlier versions but I'm not supporting them - # (patches would, of course, be welcome) +use 5.006; use File::Spec (); use File::Path (); diff --git a/t/subroutine-in-inc.t b/t/subroutine-in-inc.t index d3b4bd3..6d0480f 100644 --- a/t/subroutine-in-inc.t +++ b/t/subroutine-in-inc.t @@ -16,9 +16,9 @@ my $dir; BEGIN { $base = CODE_in_INC; - unshift @INC, sub { }; - splice @INC, 3, 1, sub { }; - push @INC, sub { }; + unshift @INC, sub { () }; + splice @INC, 3, 1, sub { () }; + push @INC, sub { () }; $dir = tempdir( DIR => Cwd::abs_path('t'), CLEANUP => 1 ); }