Help for this page

Select Code to Download


  1. or download this
    ok(sub{$str =~ /abc/}, "string matches");
    
  2. or download this
    ok($str =~ /abc/, "string matches");
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
        my $str = "aaa";
        $str =~ m/abc/;
    }
    
  4. or download this
    sub ok
    return fail