Hello...

My name is Seema, I am new on this site..please bare with me.

I have looked at a few of the questions and examples, in some of the responses that other people have had problems with. Though I didn't find one that would relate to my problem.

I would like to ask you a question. I am working on a project which deals with Unix, Perl, and HTML scripts. I have already created a website which will monitor on a day-to-day basis (with the Unix machine).

Though, I have ran 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.

For example: April 30 - May 30. The loop needs to repeat 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 someone can suggest a few example scripts or references which can help me out.

Thanks! ~Seema



Edit 2001-06-18 -- ar0n Fixed formatting.
Edit 2001-06-18 -- Masem Changed title from "Perl Script"

In reply to Looping months and days by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.