This is just a wild guess, but is it possible that the pos of $$ref_sRecord is not zero when you do the g-matching? That would explain why copying the string helps.
In reply to Re: Weirdness with matching into an array
by ambrus
in thread Weirdness with matching into an array
by gcthompson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |