in reply to Re^5: Best complex structure?
in thread Best complex structure?
and I got this message:@structure = ( [{ ... }, ], [ { ... }, { ... }, ], [ { ... }, { ... }, ], [ { ... }, { ... }, ], ); ## foreach @query { my @ex = executeRequest ($_); push @structure, []; for (my $i=0;$i<=$#ex;$i++) { push @structure->[$i], $ex[$i]; }
and the results is ... 277446212my @structure = ( [ # Result from first query. { 'field1_statement1' => 'value', 'field2_statement1' => 'value' }, ], [ #Results from second query { 'field1_statement2' => 'value', 'field2_statement2' => 'value', 'field3_statement2' => 'value' }, { 'field1_statement2' => 'value', 'field2_statement2' => 'value', 'field3_statement2' => 'value' } ], [ # results from third query { 'field1_statement2' => 'value' } ] ); my $q2Total = sum @{ $structure[ 1 ] }; print $q2Total."\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Best complex structure?
by BrowserUk (Patriarch) on Jun 09, 2005 at 18:59 UTC | |
by mat21 (Beadle) on Jun 10, 2005 at 09:21 UTC | |
by BrowserUk (Patriarch) on Jun 10, 2005 at 11:42 UTC | |
by mat21 (Beadle) on Jun 10, 2005 at 13:04 UTC | |
by BrowserUk (Patriarch) on Jun 10, 2005 at 14:08 UTC | |
by planetscape (Chancellor) on Jul 03, 2005 at 11:22 UTC |