As to why you had this problem... @second = @first only does a shallow copy. The references in @first are copied to @second, so that @{$second[0]} is the exact same array as @{$first[0]}.
In reply to Re: Creating a copy of an array
by chipmunk
in thread Creating a copy of an array
by nsluis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |