Help for this page

Select Code to Download


  1. or download this
    for ([qw/dog good/],[qw/food fodder/]) {
       my ($first, $second) = @$_;
    ...
          unless join("",sort split //,$second) =~ join(".*",sort split //
    +,$first);
       print "contain $second\n";
    }
    
  2. or download this
    join("",sort split //,$first) =~ ("^".join("?",sort(split //,$second))
    +."?\\z")