Hello.. I am a new member of the Monks. My name is Seema. I am a student at Purdue University. I would love to chit-chat..but if I start...I won't stop. :o)

Before I start asking my question...let me say this. I am very new to the Perl language. I have some books, as references, though it hasn't helped me out. Maybe a monk can help me out!?!

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

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 bases (on 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 find a script that will loop 31 days, daily. Though I dont' know how to come about this. Here is a rough idea of what I am talking about:

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.

How would I come about make this particular loop? Hopefully a few Monks can suggest a few examples or references which can help me out on this script. Thanx!

~Seema


In reply to Looping Question.... by Seema

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.