Do I need a newer version?
No, but you do need to remember to put the brackets around $temp when you assign to it in order to ensure list context. You should also provide an SSCCE rather than 4 lines out of context as something could be wrong in the code you aren't showing too.
In reply to Re^3: how to split a string at [ ?
by hippo
in thread how to split a string at [ ?
by blaui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |