in reply to Re: Re: Re: Array of Arrays & Fetchrow
in thread Array of Arrays & Fetchrow

Hi, something's fishy indeed - probably my fault :). If you print the values of @rows after the push, what does it say (should say ARRAYREF(0x.....) )?

CU
Robartes-

  • Comment on Re: Re: Re: Re: Array of Arrays & Fetchrow

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Array of Arrays & Fetchrow
by Willman023 (Scribe) on Nov 04, 2002 at 13:46 UTC
    After the first push it prints out:

    1 : 1111

    After the second push its like:

    2 : 2222
    2 : 2222

    So I'm thinking I'm loosing the reference to the first entry 1 : 1111. But for my purposes I need to be able to access this list after the loop. So do I need fetchrow_array instead of fetchrow_arrayref to be able to keep the previous entries? And if so, how would that change the syntax of the embeded array? Thanks alot! bW