Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    baz
    foo
    quz
    
  2. or download this
    quzz: 0
    foo: 3
    baz: 1
    ba: 1
    
  3. or download this
    my ($regex) = map {qr/($_)/} join '|', map {quotemeta} @pat_array;
    my %match_count;
    ...
    for my $k (sort keys %match_count) {
        print $k,": ",$match_count{$k},"\n";
    }
    
  4. or download this
    ba: 1
    baz: 1
    foo: 3