Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Adding to dates

by fglock (Vicar)
on Aug 08, 2002 at 14:48 UTC ( #188603=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://188603]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2023-03-25 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?