in reply to split with separators but dont include in the array
This obviously isn't the way you want to leave the final code but it is better to having something that works that you are unhappy with then something that doesn't work at all. You can always improve.my @matches = grep { $_ !~ /(\&\&|\|\|)/ } split /(\&\&|\|\|)/, $str;
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: split with separators but dont include in the array
by anniyan (Monk) on Oct 17, 2005 at 15:37 UTC |