From: Steffen Mueller Date: Wed, 2 Sep 2009 21:04:40 +0000 (+0200) Subject: Deprecate termcap.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9748ec9a218546f03f8c9521dcc8292addfb043b;p=p5sagit%2Fp5-mst-13.2.git Deprecate termcap.pl with a warning --- diff --git a/lib/termcap.pl b/lib/termcap.pl index f295a2d..8c7381b 100644 --- a/lib/termcap.pl +++ b/lib/termcap.pl @@ -2,12 +2,19 @@ # # This library is no longer being maintained, and is included for backward # compatibility with Perl 4 programs which may require it. +# This legacy library is deprecated and will be removed in a future +# release of perl. # # In particular, this should not be used as an example of modern Perl # programming techniques. # # Suggested alternative: Term::Cap # + +warn( "The 'termcap.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl. Please use the" + . " Term::Cap module instead." ); + ;# ;# Usage: ;# require 'ioctl.pl';