Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: retrieve list values...

by danidin (Novice)
on Jul 18, 2005 at 13:35 UTC ( [id://475753]=note: print w/replies, xml ) Need Help??


in reply to Re: retrieve list values...
in thread retrieve list values...

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.

Replies are listed 'Best First'.
Re^3: retrieve list values...
by holli (Abbot) on Jul 18, 2005 at 13:50 UTC
    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 ?
        What was I missing there ?
        For sure, you were missing to include the example of what you tried. It's difficult to tell you what you were actually missing without knowledge of what you wrote!

        You already had the data in the form you wanted: an array (accessible via a reference to it) of hash references, each hash keeping one "trio". A look to some tutorial documentation will help you understand things better.

        Flavio
        perl -ple'$_=reverse' <<<ti.xittelop@oivalf

        Don't fool yourself.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://475753]
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: (4)
As of 2024-04-18 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found