blob: 388adf4bedf77dfa409c6bc06460353cc53051cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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($@);
eval { kill 0 * $_[0] };
$@ =~ /^Insecure/;
}
1;
|