Help for this page

Select Code to Download


  1. or download this
    sub search {
        my $terms = shift;
        my $pattern = join "|", split " ", $terms;
    ...
       my @matches = grep { $names[$_] =~ /$pattern/ } 0..$#names;
        return \@matches;
    }