Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl 
    use strict;
    ...
        print "$text found (grep)\n" if grep {$text eq $_} @cases;
        print "$text found (regex)\n" if $text =~ /^$re$/;
    }