This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0adf28f
)
Deprecate tainted.pl with a warning
author
Steffen Mueller
<smueller@cpan.org>
Wed, 2 Sep 2009 21:04:31 +0000
(23:04 +0200)
committer
Steffen Mueller
<smueller@cpan.org>
Wed, 2 Sep 2009 21:04:31 +0000
(23:04 +0200)
lib/tainted.pl
patch
|
blob
|
blame
|
history
diff --git
a/lib/tainted.pl
b/lib/tainted.pl
index
6e24867
..
388adf4
100644
(file)
--- 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($@);