that yields:my @output = myfunc("data_value1"); print Dumper \@output;
My question is how can iterate/print such data structure so that I can get the output like this:$VAR1 = [ bless( { 'ID' => 'WBGene00000099', 'DBConnection' => bless( { 'database' => 'treefam_6', 'database_handle' => bless( {}, 'DBI::db' ) }, 'Treefam::DBConnection' ), 'species' => 'Caenorhabditis elegans', 'bootstrap' => '19', 'species_name_type' => 'LATIN' }, 'Treefam::Gene' ), bless( { 'ID' => 'WBGene00000098', 'DBConnection' => $VAR1->[0]{'DBConnection'}, 'species' => 'Caenorhabditis elegans', 'bootstrap' => '1', 'species_name_type' => 'LATIN' }, 'Treefam::Gene' ), bless( { 'ID' => 'YPL209C', 'DBConnection' => $VAR1->[0]{'DBConnection'}, 'species' => 'Saccharomyces cerevisiae', 'bootstrap' => '47', 'species_name_type' => 'LATIN' }, 'Treefam::Gene' ) ];
namely from "ID" and "species" keys.WBGene00000099 - Caenorhabditis elegans WBGene00000098 - Caenorhabditis elegans YPL209C - Saccharomyces cerevisiae
In reply to Iterating Blessed Array of Array by neversaint
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |