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

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) "

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

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Re: Dereference an array reference
by suaveant (Parson) on Apr 19, 2001 at 23:02 UTC
    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.

        so $var is the array reference in question, correct? And you want all the values in $var or just the first?

        I know its taking a while but we will figure this out... :)
                        - Ant