summaryrefslogtreecommitdiff
path: root/lib/fastcwd.pl
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2009-09-02 20:02:13 +0200
committerSteffen Mueller <smueller@cpan.org>2009-09-02 20:02:13 +0200
commit2f8d2bfaceb99a65b65f6a843236685417122387 (patch)
treea3135374b572907d689575e28452dd4015358991 /lib/fastcwd.pl
parent99f226bb0b01e17a9592fd646bb56b069a5200e4 (diff)
downloadperl-2f8d2bfaceb99a65b65f6a843236685417122387.tar.gz
Deprecate fastcwd.pl with a warning
Diffstat (limited to 'lib/fastcwd.pl')
-rw-r--r--lib/fastcwd.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/fastcwd.pl b/lib/fastcwd.pl
index ecd87c8a03..11133481dc 100644
--- a/lib/fastcwd.pl
+++ b/lib/fastcwd.pl
@@ -2,12 +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: Cwd
-#
+
+warn( "The 'fastcwd.pl' legacy library is deprecated and will be"
+ . " removed in the next major release of perl. Please use the"
+ . " Cwd module instead." );
+
# Usage: $cwd = &fastcwd;
#
# This is a faster version of getcwd. It's also more dangerous because