Maybe I'm not following you, but can't you just do: @fields = split(/:|::|\s+/, $string);In other words, just use alternation in the pattern?
In reply to Re: expanding the functionality of split
by VSarkiss
in thread expanding the functionality of split
by tigervamp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |