Hello everyone,
I'm trying to come up with a way to automatically create a hash like
the following:
use Tie::IxHash;
tie my %pairs, "Tie::IxHash";
%pairs = (
'1' => {
'start' => '04/24/05',
'end' => '04/30/05'
},
'2' => {
'start' => '05/01/05',
'end' => '05/07/05'
},
'3' => {
'start' => '05/08/05',
'end' => '05/14/05'
},
);
It's a hash with the start and end date for each week with the start
date being Sunday and the end date being the following Saturday.
I know all about Data::Calc, Date::Manip and have scoured them for
every possible way of coming up with something like this, but I can't
seem to get it.
Ultimately, if I could find a solution that would give me dates like
these for any day range (for example Tues - Mon) and a start and end
date and it fill in the blanks that would be great.
I've even tried working with the Date::Manip ParseRecur function and
can't seem to get anything to work.
Any help is greatly appreciated!
Kevin
--
Kevin Old
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>