From: Steffen Mueller Date: Wed, 2 Sep 2009 16:30:10 +0000 (+0200) Subject: Deprecate abbrev.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8670a613094bda0371216c408e705ef051cfbf10;p=p5sagit%2Fp5-mst-13.2.git Deprecate abbrev.pl with a warning --- diff --git a/lib/abbrev.pl b/lib/abbrev.pl index c505a6f..eac0053 100644 --- a/lib/abbrev.pl +++ b/lib/abbrev.pl @@ -7,6 +7,8 @@ # # 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. @@ -16,6 +18,10 @@ package abbrev; +warn( "The 'abbrev.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl. Please use the" + . " Text::Abbrev module instead." ); + sub main'abbrev { local(*domain) = @_; shift(@_);