in reply to Re: references to arrays. I don't really get it I guess...
in thread references to arrays. I don't really get it I guess...

Thanks. The braces makes a lot of sense. The thing was in my real code I still got errors when I used braces. But this was actually from another iteration where $self was a different thing altogether but the error looked the same so I assumed it was. Uh, what sort of "number of other problems". Might as well find out about them now rather than later.
  • Comment on Re: Re: references to arrays. I don't really get it I guess...

Replies are listed 'Best First'.
Re: Re: Re: references to arrays. I don't really get it I guess...
by Anonymous Monk on Dec 02, 2003 at 03:47 UTC
    Uh, what sort of "number of other problems". Might as well find out about them now rather than later.
    Why don't you "use strict;" and find out?
Re: Re: Re: references to arrays. I don't really get it I guess...
by mpeppler (Vicar) on Dec 02, 2003 at 16:11 UTC
    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