From: Steffen Mueller Date: Wed, 2 Sep 2009 16:43:10 +0000 (+0200) Subject: Deprecate ctime.pl with a warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e3c0ad970ebd69ea25e9ecd3835c43fcf2d80b0a;p=p5sagit%2Fp5-mst-13.2.git Deprecate ctime.pl with a warning --- diff --git a/lib/ctime.pl b/lib/ctime.pl index 6a3f295..6f4016a 100644 --- a/lib/ctime.pl +++ b/lib/ctime.pl @@ -2,11 +2,18 @@ # # 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: the POSIX ctime function + +warn( "The 'ctime.pl' legacy library is deprecated and will be" + . " removed in the next major release of perl. Please use the" + . " POSIX module (ctime function) instead." ); + ;# ;# Waldemar Kebsch, Federal Republic of Germany, November 1988 ;# kebsch.pad@nixpbe.UUCP