Help for this page

Select Code to Download


  1. or download this
      if ($checks{'data'} =~ /([^$checks{'regex'}])/) {
        bail_out("Bad input.");
      }
    
  2. or download this
      my $default = '-\@\w. ';
      $checks{'charclass'} ||= $default;
    ...
       if ($checks{'data'} =~ /[^$re]/) {
          bail_out("Bad data");
       }