in reply to Re^3: Keys and Values from Hash
in thread Keys and Values from Hash
Yes something similar like you wrote!! Do you suggest any better way to do that?
My end goal is to create an HTML page, which will display a Column Chart. Each column is each $customer, who has its value drawn.
In bussiness, we have everyday new customers, and so the myHash will change everyday when I run the Script to get the data (which customers did visit us today). That can be completely direferent than yesterday (the names of $customer).
I am trying to find a good way to filter through myHash each $customer with it's representing value (money).
I Should ADD impotant info:I noticed I have always written here that there is only one possible value from $customer. THIS IS NOT TRUE! My mistake.
This is how I have it now, Ill run some tests if this is what I want.foreach $customer(keys %myHash){ $money_spent_9am = $myHash{$customer}{money9am}; $money_spent_3pm = $myHash{$customer}{money3pm}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Keys and Values from Hash
by AppleFritter (Vicar) on Jul 18, 2014 at 13:22 UTC | |
|
Re^5: Keys and Values from Hash
by poj (Abbot) on Jul 18, 2014 at 17:35 UTC |