Result should be @mainarray with all the original elements, but purged of @filterarray elements. So, if @filterarray contains "the" and @mainarray contains "In to the wild" or "The catcher in the rye", after the job they should look like "In to wild" and "catcher in rye". Any help greatly appreciated. Thanks in advance.foreach @filterarray { if @mainarray element contains @filterarray element { strip out @filterarray element from @mainarray element} }
In reply to array filter by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |