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 ?