Help for this page

Select Code to Download


  1. or download this
    my $match = sub { return substr($_[0], 0, 3) eq substr($_[1], 0, 3); }
    +;
    print $match->('aaaa','aaab');
    
  2. or download this
    myset($match, @words);
    sub myset {
    ...
        # Do whatever set algorithm here,
        # using $match to compare words
    }