home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December (Special) / PCWorld_2005-12_Special_cd.bin / Bezpecnost / lsti / lsti.exe / framework-2.5.exe / tainted.pl < prev    next >
Text File  |  2005-01-27  |  164b  |  10 lines

  1. # This subroutine returns true if its argument is tainted, false otherwise.
  2.  
  3. sub tainted {
  4.     local($@);
  5.     eval { kill 0 * $_[0] };
  6.     $@ =~ /^Insecure/;
  7. }
  8.  
  9. 1;
  10.