Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    ok(   match( $_ ), "matches '$_'" )        for @match_wanted;
    ok( ! match( $_ ), "does not match '$_'" ) for @match_unwanted;
    
  2. or download this
    1..9
    ok 1 - matches 'abc'
    ...
    ok 7 - does not match 'aab'
    ok 8 - does not match 'abbc'
    ok 9 - does not match 'acc'