The first problem is your @gum array. You initialize it in package "main", but you reference it in package "test". Which means that you are accessing two different @gum arrays: @main::gum and @test::gum. Using "strict" would point that out (among other things).
Michael
Comment on Re: Re: Re: references to arrays. I don't really get it I guess...