Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: Re: Looping Question....by RhetTbull (Curate) |
on Jun 21, 2001 at 01:42 UTC ( [id://90209]=note: print w/replies, xml ) | Need Help?? |
I believe the following code will do what you want. Note, I put a loop in the code so that it would execute every day but this is probably not what you want. If you need to execute a script (or any program) every day, then you want to learn about "cron" if you're on a unix machine or "at" if you're on a WindowsNT/2000 machine. To learn more about cron, type "man cron" and "man crontab" at a unix shell prompt. To learn more about "at" type "at /?" at a Windows Command Prompt. Here's a simple example using Date::Calc that will print out a list of dates from today to 31 days in the past. Regards, Rhet PS. -- since you're new here, I highly recommend taking a look at turnstep's guide to the monastery.
In Section
Seekers of Perl Wisdom
|
|