From 0111154e36e017cd8f7830ff1ed29407df297e00 Mon Sep 17 00:00:00 2001 From: Zefram Date: Sat, 17 Apr 2010 15:25:10 +0100 Subject: deprecation warning on deprecated-in-core .pl libs This is a mandatory warning, not obeying -X or lexical warning bits. To make it behave like an internal deprecation warning would be a lot of hassle to do in pure Perl. The warning is modelled on that supplied by deprecate.pm for deprecated-in-core .pm libraries. It points to the specific CPAN distribution that contains the .pl libraries. The CPAN version, of course, does not generate the warning. --- lib/assert.pl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/assert.pl') diff --git a/lib/assert.pl b/lib/assert.pl index 10d2d1a240..d47e0067a2 100644 --- a/lib/assert.pl +++ b/lib/assert.pl @@ -1,3 +1,5 @@ +warn "Legacy library @{[(caller(0))[6]]} will be removed from the Perl core distribution in the next major release. Please install it from the CPAN distribution Perl4::CoreLibs. It is being used at @{[(caller)[1]]}, line @{[(caller)[2]]}.\n"; + # # This library is no longer being maintained, and is included for backward # compatibility with Perl 4 programs which may require it. -- cgit v1.2.1