Split does not modify the original scalar; it returns a list. If you want to split the elements of that list, you need to split each of the elements and then collect those mini lists into a bigger list.
Write yourself a subroutine that takes a list, splits each of the things in that list, and pushes the results into a big list to return.
You can then call that sub as many times as you like without having to use recursion (starting with a list of 1 items, your original string).
In reply to Re: recursive split
by SuicideJunkie
in thread recursive split
by newbio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |