summaryrefslogtreecommitdiff
path: root/lib/tainted.pl
diff options
context:
space:
mode:
authorSteffen Mueller <smueller@cpan.org>2009-09-02 23:04:31 +0200
committerSteffen Mueller <smueller@cpan.org>2009-09-02 23:04:31 +0200
commite9a927b58cfb908fb66a58427a00c931c84d0d87 (patch)
tree4ca9f30be9bab96afe366576eb31c27415b0900e /lib/tainted.pl
parent0adf28fd674e657e95574d21ee920ad02ac21e92 (diff)
downloadperl-e9a927b58cfb908fb66a58427a00c931c84d0d87.tar.gz
Deprecate tainted.pl with a warning
Diffstat (limited to 'lib/tainted.pl')
-rw-r--r--lib/tainted.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tainted.pl b/lib/tainted.pl
index 6e24867a83..388adf4bed 100644
--- a/lib/tainted.pl
+++ b/lib/tainted.pl
@@ -1,4 +1,10 @@
+# This legacy library is deprecated and will be removed in a future
+# release of perl.
# This subroutine returns true if its argument is tainted, false otherwise.
+#
+warn( "The 'tainted.pl' legacy library is deprecated and will be"
+ . " removed in the next major release of perl. Please use the"
+ . " Scalar::Util module ('tainted' function) instead." );
sub tainted {
local($@);