Help for this page

Select Code to Download


  1. or download this
    The exception to the principle of "one tainted value taints the whole
    expression" is with the ternary conditional operator "?:".  Since code
    ...
      }
    
    it doesn't make sense for $result to be tainted.
    
  2. or download this
    #!/usr/bin/perl -T
    use warnings;
    ...
    my $seven = "";
    $seven = "the $foo" if $t;
    print "7. tainted\n" if tainted($seven);
    
  3. or download this
    1. tainted
    7. tainted