So I see a bug whereby the 3rd iteration of $& is random garbage when $A has '' appended. Is this the bug you're reporting, or is there any other behaviour in the output you've shown which you also consider a bug?
Dave.
Comment on Re: Strange behaviour when regex variable is modified during match?