your code works. I suspect this has something to do with how the substitution operator is parsing code within the /e block. Specifically, the quoted brackets in the split regex.s{}[]gsex; ^^ to s{}{}gsex; ^^
In reply to Re: matching / splitting within a substitution
by dws
in thread matching / splitting within a substitution
by PodMaster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |