in reply to *a=*b;@a=@b problem

That is clearly a bug where Perl got confused by the fact that the two arrays are the same when Perl didn't expect it. I would suggest using the perlbug utility to report it to p5p.