Help for this page

Select Code to Download


  1. or download this
    $ ./1.hippo_regex.pl 
    1..7
    ok 1 - a matched
    ...
    ok 5 - "@$ not matched
    ok 6 - ~ not matched
    ok 7 - [{ not matched
    
  2. or download this
    #!/usr/bin/perl -w
    use 5.011;
    use Test::More;
    ...
    for my $str (@bad) {
        unlike ($str, $re, "$str not matched");
    }