PDA

For continued disscussion on this topic : Regarding Perl...



Seema
06-08-2001, 05:56 PM
I came across this web site, when I was searching for a solution. I have looked at a few of the examples, in the this site. But I cannot find the solution to my problem. Maybe someone can tell me or point me in the right direction!?!
I am working on a project which deals with Unix, Perl, and HTML. I have created a website which will monitor on a day-to-day bases.
Though I have run into a slight problem. In order for this website to work, I need to write a script in Perl so I can put it on the Unix machine. I need a script that will loop 31 days daily. Such as April 30 - May 30. The loop needs to come up daily. So when its May 31, the dates should change to May 1. April 30 should be dropped off the loop. My question is...how would I come about doing this particular loop?
Hopefully you can suggest a few situations or references which can help me out on this script. I hope to hear from you soon. Thank you for your time.

Chopper
06-09-2001, 09:25 AM
What you would use for that particular problem is an IF THEN ELSE statement.

Ill give you a link to a page which covers dates and time. In perl time is stored as a numerical function which makes it alot easier on the old 31 30 thing.

The link (http://library.thinkquest.org/26297/perl/pollCGI.shtml)

That has alot of interesting stuff on time and perl, you should check it out...