Help for this page

Select Code to Download


  1. or download this
    sub findString($) {
        my $line = shift;
        print "found\n" if $line =~ eval "qr/$regex/";
    }
    
  2. or download this
    my $s = 'Tue Feb  8 11:11:11 2005: blah blah blah';
    
    ...
    
        print "found\n" if $line =~ /$regex/;
    }