@arr = split /(&&|\|\|)/, $str; #### @arr = split /foo|bar|meh/, $str;