Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: how to avoid nested looping?

by dimar (Curate)
on Feb 04, 2005 at 08:27 UTC ( [id://427985]=note: print w/replies, xml ) Need Help??


in reply to how to avoid nested looping?

Unless I am missing something amidst all this talk of map and leaves (like the forest for the trees), there is no reason why you cannot simply specify the exact address of the data element that you want to retrieve.

map{$total_value+=$_->{test1}}@{$testsub->result()->[0]->{columns}}

Off the top of my head this syntax may be wrong, gotta get on the other machine to check it.

Update: I did miss something, already answered.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://427985]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-20 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found