in reply to expanding the functionality of split
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: expanding the functionality of split
by tachyon (Chancellor) on Dec 09, 2002 at 23:49 UTC | |
by runrig (Abbot) on Dec 10, 2002 at 00:20 UTC | |
by tigervamp (Friar) on Dec 10, 2002 at 00:51 UTC | |
by tachyon (Chancellor) on Dec 10, 2002 at 01:33 UTC | |
by Abigail-II (Bishop) on Dec 10, 2002 at 17:03 UTC | |
|