in reply to Re: Re: Re: Re: Re: Dereference an array reference
in thread Dereference an array reference

This is all very confusing...
do you want the text from between the ()? I.E. ARRAY(0xeb960) would become 0xeb960? Because that value doesn't have much practical use.

Is this name you are looking for in the array, or is it a property of the array. Is it actual data you have put in?
                - Ant

  • Comment on Re: Re: Re: Re: Re: Re: Dereference an array reference

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Dereference an array reference
by fmogavero (Monk) on Apr 19, 2001 at 22:50 UTC
    I need the actual value contained in the array.

    the array contains the values of INT4 fields from a database. I need that INT4 field value. I know that ARRAY(XXXXXXX) is a reference. I don't care about the memory location. I want what's in the memory location.

    I want a SQL statement that reads "select * from rockstars where name = 'ringo' "

    What I am getting is a SQL statement that reads "select * from rockstars where name = ARRAY(XXXXXXX) "

      Ok... is there more than one entry in the array, or just one. if there are more than one entry in the array which one(s) do you want?
                      - Ant
        There is more than one value in the array. In my example $self->tsids contains a list or an array. Its just a bunch of values returned from the database.

        I wanted to use foreach $var($self->tsids) to iterate over the list and create a new object for each item in the list.