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.