in reply to Adding to dates

Hi Chris.

There are many ways to do it. This is another one:

use Date::Tie; tie my %date, 'Date::Tie'; $date{week} += 2; # today + 2weeks print "$date{month}/$date{day}\n";

update: Re: module installation -- error: Can't locate Date/Tie.pm

Windows:

ppm install Date::Tie

Unix:

perl -MCPAN -e shell install Date::Tie

Replies are listed 'Best First'.
Re: Re: Adding to dates
by Anonymous Monk on Aug 08, 2002 at 15:14 UTC
    thansk, when i try to run it i get the error: Can't locate Date/Tie.pm in @inc any ideas?
      i take that last question back. is it possible to do this without requiring any additional modules? James