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

Re: retrieve list values...

by socketdave (Curate)
on Jul 18, 2005 at 13:32 UTC ( [id://475752]=note: print w/replies, xml ) Need Help??


in reply to retrieve list values...

I'm not clear on what you're looking for here... You have an anonymous array of hashes already. Do you want the ID, TEXT and VALUE data to be flattened into a string and have them stored in an array? Do you want to give the anonymous array a name?

Replies are listed 'Best First'.
Re^2: retrieve list values...
by danidin (Novice) on Jul 18, 2005 at 13:35 UTC
    I can't go over all the trioes. I have tried any possible way. how can I go over these trioes ? what should be the code for having them trio by trio ? Thanks.
      use strict; use warnings; my $arrayref = [ { 'ID' => '111087327557000.111087327557001', 'TEXT' => 'AIAA_AMERICAN_INSTITUTE_OF_AERONAUTICS_A-getFullTxt +', 'VALUE' => '111087327557001' }, { 'ID' => '110974885571586.110974885571587', 'TEXT' => 'AIP_SCITATION-getFullTxt', 'VALUE' => '110974885571587' }, ]; my $i; for my $trio ( @{$arrayref} ) { $i++; print "Trio Number $i contains:\n", " id: ", $trio->{ID}, "\n", " text: ", $trio->{TEXT}, "\n", " value: ", $trio->{VALUE}, "\n\n"; }


      holli, /regexed monk/
        Thanks !!! it is working. Thank you very much :-) What was I missing there ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found