in reply to Date::Manip::Recur is not returning a list
From looking at the tests it looks like parse returns a true/false value depending on parse success/failure, and not the actual date(s).
$ perl -l use strict; use warnings; use Date::Manip; my $obj = new Date::Manip::Recur; my $err = $obj->parse( qw(1:2:3:4*12:30:00 2000010500:00:00 2000010100:00:00 2003010100:00:00 ) ); die $obj->err() if $err; my @dates = $obj->dates(); foreach my $date (@dates) { print $date->value; } __END__ 200015123000 2001330123000 2002624123000 $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Date::Manip::Recur is not returning a list
by desertrat (Sexton) on Jun 24, 2010 at 21:19 UTC | |
by almut (Canon) on Jun 24, 2010 at 21:28 UTC | |
by desertrat (Sexton) on Jun 24, 2010 at 22:38 UTC |