Subject: | [PATCH] my $_ is deprecated |
my $_ is now deprecated in bleadperl.
See <https://rt.perl.org/rt3//Public/Bug/Display.html?id=114020> and
<https://rt.perl.org/rt3//Public/Bug/Display.html?id=75598>, particularly the explanation at <https://rt.perl.org/rt3/Ticket/Display.html?id=75598#txn-1175682> and Ricardo’s decision at <https://rt.perl.org/rt3/Ticket/Display.html?id=75598#txn-1175872>.
The attached patch suppresses the warning in the tests.
Subject: | open_QfhHbKch.txt |
diff --git a/parts/inc/misc b/parts/inc/misc
index 59c326a..e41c673 100644
--- a/parts/inc/misc
+++ b/parts/inc/misc
@@ -496,6 +496,7 @@ ok(&Devel::PPPort::UNDERBAR(), "Fred");
if ($] >= 5.009002) {
eval q{
+ no warnings "deprecated";
my $_ = "Tony";
ok(&Devel::PPPort::DEFSV(), "Fred");
ok(&Devel::PPPort::UNDERBAR(), "Tony");
diff --git a/cpan/Devel-PPPort/t/misc.t b/cpan/Devel-PPPort/t/misc.t
index 9dcc565..f74a9df 100644
--- a/t/misc.t
+++ b/t/misc.t
@@ -59,6 +59,7 @@ ok(&Devel::PPPort::UNDERBAR(), "Fred");
if ($] >= 5.009002) {
eval q{
+ no warnings "deprecated";
my $_ = "Tony";
ok(&Devel::PPPort::DEFSV(), "Fred");
ok(&Devel::PPPort::UNDERBAR(), "Tony");