Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This code is basically from the Date::Calc::Iterator Docs, but I added the foreach to print out the values of @dates1use Date::Calc::Iterator; # This puts all the dates from Dec 1, 2003 to Dec 10, 2003 in @dates +1 # @dates1 will contain ([2003,12,1],[2003,12,2] ... [2003,12,10]) ; my $i1 = Date::Calc::Iterator->new(from => [2003,12,1], to => [2003, +12,10]) ; my @dates1 ; push @dates1,$_ while $_ = $i1->next ; foreach my $v (@dates1) { print $v; }
What am I doing wrong? How come I can't print the values of @dates1 correctly.ARRAY(0x1a2f2a4)ARRAY(0x17cb864)ARRAY(0x17cb7bc)ARRAY(0x17cb810)ARRAY( +0x17cb594)ARRAY(0x1a619e0)ARRAY(0x1a619a4)ARRAY(0x1a619d4)ARRAY(0x1a6 +1a1c)ARRAY(0x1a61aa0)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Date::Calc::Iterator
by prasadbabu (Prior) on Jul 14, 2005 at 06:28 UTC | |
|
Re: Date::Calc::Iterator
by gopalr (Priest) on Jul 14, 2005 at 07:00 UTC | |
by rev_1318 (Chaplain) on Jul 14, 2005 at 08:16 UTC | |
by Anonymous Monk on Jul 14, 2005 at 07:04 UTC | |
by Samy_rio (Vicar) on Jul 14, 2005 at 07:44 UTC |