I have a script which has to be manually edited to run for a span of days.  When
these days are over several weeks it can be clearly tedious to enter dates in
yyyy-mm-dd format.  I've decided to set it up to ask for user input.

What I need is some input on is how to make it create the array for all the
dates requested.  For instance, if someone wants to run the script spanning
07/20/2007 to 08/20/2007 how can I split that up to ensure it runs across all
days and both months?

I'm thinking I would have to split each argument into an array and then create
an array for the months and days running a foreach loop over them both.  But
then, how would I accommodate the varying number of days in each month?

Any input will be appreciated.  Thanks.

Mathew
-- 
Keep up with me and what I'm up to: http://theillien.blogspot.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to