in reply to Re: Re: expanding the functionality of split
in thread expanding the functionality of split
@chunks = do {local $" = "|"; split "@array" => $str};
assuming that @array is the array with your delimiters. You can of course put that in a sub:
sub mysplit (\@;@) { local $" = "|"; split "@{+shift}" => @_; } @chunks = mysplit @array => $str;
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: expanding the functionality of split
by tachyon (Chancellor) on Dec 10, 2002 at 15:15 UTC | |
by Abigail-II (Bishop) on Dec 10, 2002 at 15:29 UTC | |
by Aristotle (Chancellor) on Dec 10, 2002 at 15:37 UTC | |
by tachyon (Chancellor) on Dec 10, 2002 at 15:57 UTC | |
|
Re: Re: expanding the functionality of split
by BrowserUk (Patriarch) on Dec 10, 2002 at 15:07 UTC | |
by Abigail-II (Bishop) on Dec 10, 2002 at 15:19 UTC | |
|
Re: Re: expanding the functionality of split
by BrowserUk (Patriarch) on Dec 10, 2002 at 17:03 UTC | |
by Abigail-II (Bishop) on Dec 10, 2002 at 17:20 UTC |