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

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/

Replies are listed 'Best First'.
Re^4: retrieve list values...
by danidin (Novice) on Jul 18, 2005 at 14:04 UTC
    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.