Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Re: Re: Re: Re: Re: Dereference an array reference

by fmogavero (Monk)
on Apr 19, 2001 at 22:50 UTC ( [id://73923]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://73923]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found