Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: Architectural question...by devnul (Monk) |
on Jul 05, 2005 at 17:50 UTC ( [id://472540]=note: print w/replies, xml ) | Need Help?? |
Let me try to elaborate..
This code:
.. builds a hash where the key is something like "a.b.c.d". .. The problem is the total for a.b.c needs to be a sum of all the categories beneath it a.b.c.* and thus the top level category is the sum of "a.*". This "summation" is handled by the next snippet:
In the example where $key = 'a.b.c.d' each loop of the foreach loop would look something like:
I hope this clarifies! - dEvNuL
In Section
Seekers of Perl Wisdom
|
|