Help for this page

Select Code to Download


  1. or download this
    $largeArray[0] = "this is a test";
    $largeArray[1] = "this is another test";
    ...
    if (@newArray = grep {/@searchCriteria/} @largeArray) {
       print @newArray;
    }
    
  2. or download this
    if (@newArray = grep {/another/ and /test/} @largeArray) {
       print @newArray;
    }