summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2009-09-02 18:43:10 +0200
committerSteffen Mueller <smueller@cpan.org>2009-09-02 18:43:10 +0200
commite3c0ad970ebd69ea25e9ecd3835c43fcf2d80b0a (patch)
tree9b465be1949a12d519cf7e0f3a48242ff569624a
parent1aaec2974763f3218f70faa91f2f7ccaaf587af5 (diff)
downloadperl-e3c0ad970ebd69ea25e9ecd3835c43fcf2d80b0a.tar.gz
Deprecate ctime.pl with a warning
-rw-r--r--lib/ctime.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ctime.pl b/lib/ctime.pl
index 6a3f295968..6f4016a226 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