in reply to Help with storing data in a hash
%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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Help with storing data in a hash
by hallikpapa (Scribe) on Jan 28, 2008 at 22:26 UTC | |
by samtregar (Abbot) on Jan 28, 2008 at 22:28 UTC | |
by Punitha (Priest) on Jan 29, 2008 at 04:44 UTC |