Subject: | [PATCH] Mark as deprecated in perl core |
Hi Reini,
As mentioned in #118391, we would like to deprecate B::Debug from the core, and later remove it.
To assist in this, can you please apply the following, to make it issue a warning when used from the core directory on perls where it's deprecated? It will have no effect on older perls, or when the module is installed from CPAN.
Thanks in advance,
ilmari
diff --git a/cpan/B-Debug/Debug.pm b/cpan/B-Debug/Debug.pm
index e295635d35..149c22bc52 100644
--- a/cpan/B-Debug/Debug.pm
+++ b/cpan/B-Debug/Debug.pm
@@ -1,5 +1,7 @@
package B::Debug;
+use if "$]" >= 5.027003, 'deprecate';
+
our $VERSION = '1.24';
use strict;