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}; }
In reply to Re^4: Keys and Values from Hash
by David92
in thread Keys and Values from Hash
by David92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |