in reply to Dereferencing of data

@new_array = @$array;

That's a shallow clone of an array reference. For deep cloning use Storable.