The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Taint - Perl extension to taint variables

SYNOPSIS

  use Taint;
  taint($taintvar[, $anothervar[, $yetmorevars]]);
  $bool = tainted($vartocheck);

DESCRIPTION

taint() marks its arguments as tainted.

tainted() returns true if its argument is tainted, false otherwise

DIAGNOSTICS

Attempt to taint read-only value

You attempted to taint something untaintable, such as a constant or expression. taint() only takes lvalues for arguments

Attempt to taint an array

A reference to an array was passed to taint. You can only taint individual array items, not array itself.

Attempt to taint a hash

A reference to a hash was passed to taint. You can only taint individual hash items, not the entire hash.

Attempt to taint code

You passed a coderef to taint. You can't do that.

Attempt to taint a typeglob

You passed a typeglob to taint. taint only taints scalars, and a typeglob isn't one.

Attempt to taint a reference

You tried to taint a reference, which you just can't do.

Attempt to taint something unknown or undef

You tried tainting either a variable set to undef, or your version of perl has more types of variables than mine did when this module was written. Odds are, you're trying to taint a variable with an undef value like, for example, one that has been created (either explicitly or implicitly) but not had a value assigned.

Doing this:

        my $foo;
        taint($foo);

will trigger this error.

AUTHOR

Dan Sugalski <sugalskd@osshe.edu>

SEE ALSO

perl(1).