%calls = &call_type( $d, $d );
There's your problem - you're only getting 1 day's worth of data because you're passing the same date as the start and end. Maybe you meant:
%calls = &call_type( $d, $d + 10 );
Not sure how your dates are stored though - that only works if they're epoch times or objects that know how to add.
If you mean you're calling call_type() multiple times and expecting the results to accumulate in %calls, you may want something more like:
%calls = (%calls, &call_type( $d, $d ));
-sam
In reply to Re: Help with storing data in a hash
by samtregar
in thread Help with storing data in a hash
by hallikpapa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |