Are you the same person who asked Seeking help with split!? The questions are close enough that the same solutions will apply, with minor modifications, which are left as an exercise for the student.
By the way, have you taken a look at the contents of $to_split? The way you're defining it, it will contain only 'A'.
Dave
In reply to Re: split with a delimiter, every 4 time it occurs.
by davido
in thread split with a delimiter, every 4 time it occurs.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |