Help for this page

Select Code to Download


  1. or download this
    # Takes a string and a list of REs.  Returns true or false
    # depending on whether all of them match.
    ...
      }
      return 1;
    }
    
  2. or download this
    if (match_all($str, split(/\s+/, $search_str))) {
      print "All of them matched\n";
    }
    
  3. or download this
    OUTER: {
      foreach my $animal (@animals) {
    ...
      }
      print "Matched all of them!";
    }