You want to split on the empty string or patternJust a quick note while the subject has been bought up - a string passed to split is auto-magically converted into a regex, with the sole exception of providing a q{ } (a single space) as the pattern (see. the docs for more info on this behaviour). This ambiguity was raised on p5p recently and the discussion can be followed here.
_________
broquaint
In reply to Re: Re: Splitting two digits
by broquaint
in thread Splitting two digits
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |