in reply to doubt with date arithmetic

The DateTime project is supposed to make all other Perl date and time handling modules obsolete and replace them with a consistant set of modules.

To do what you want with the DateTime modules, you'd use DateTime::Format::Strptime like this:

#!/usr/bin/perl use strict; use warnings; use DateTime::Format::Strptime; my $str = '20031105'; my $parser = DateTime::Format::Strptime->new(pattern => '%Y%m%d'); my $dt = $parser->parse_datetime($str); $dt->add(months => 3); # standard date format print $dt->date, "\n"; # or in your original formay print $parser->format_datetime($dt), "\n";
--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg