Subject: | Parsing date "now" fails when using a cloned Base |
In the following example, the first date is parsed and output
appropriately, but the second date, built on a cloned Base, produces
this error:
WARNING: [printf] Object must contain a valid date
Use of uninitialized value in print at ...
my $base = new Date::Manip::Base;
my $date = new Date::Manip::Date $base;
$date->parse('now');
print $date->printf('%g');
my $base2 = new Date::Manip::Base $base;
my $date2 = new Date::Manip::Date $base2;
$date2->parse('now');
print $date2->printf('%g');