in reply to How to access elements that SOAP::Lite Returns
That means you can loop over the campaigns by doing:$VAR1 = { 'ClickFraudReport' => { 'Name' => 'Click Fraud Report', 'TimeRange' => 'Thursday, November 23, 2006 - Wednesday, Novem +ber 29, 2006'. 'Campaigns' => [ { 'Name' => 'Google 140', 'Cost' => '$330.14', # etc }, { # etc }, ], }, };
my $report = $res->result; foreach my $campaign ( @{ $report->{ClickFraudReport}{Campaigns} } ) { print $campaign->{Name}; print $campaign->{Cost}; }
See the SOAP::Lite docs for more info. Specifically read the section on the call() method.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to access elements that SOAP::Lite Returns
by Anonymous Monk on Dec 01, 2006 at 02:38 UTC |