summaryrefslogtreecommitdiff
path: root/lib/termcap.pl
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-04-17 15:25:10 +0100
committerJesse Vincent <jesse@bestpractical.com>2010-06-28 22:30:03 -0400
commit0111154e36e017cd8f7830ff1ed29407df297e00 (patch)
tree72f8ef1592503293a05a6357bab7887cc7ff56f3 /lib/termcap.pl
parent3d71525dd80b2889a3317b298f7f976b659d8e5b (diff)
downloadperl-0111154e36e017cd8f7830ff1ed29407df297e00.tar.gz
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.
Diffstat (limited to 'lib/termcap.pl')
-rw-r--r--lib/termcap.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/termcap.pl b/lib/termcap.pl
index 4c029d313f..a84cba34e9 100644
--- a/lib/termcap.pl
+++ b/lib/termcap.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";
+
;# $RCSfile: termcap.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:16 $
#
# This library is no longer being maintained, and is included for backward