home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2006 December / PCpro_2006_12.ISO / ossdvd / server / Perl2 / lib / tainted.pl < prev    next >
Encoding:
Text File  |  1999-05-15  |  173 b   |  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.