in reply to Simple calendar
How to write codes so that the days do not exceed 28/29/30/31 days per month? and also leap year??
You don't. It's already been done. I use DateTime. Date::Calc is mentioned frequently.
The program should accept [...] the day of the week for January 1 of that particular year
That's not necessary since you have ->dow().
sorry i dunno the html formatting
On this site, <p> at the start of paragraphs, and <c>..</c> around computer text (code, data, output, etc).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Simple calendar
by perl_fool (Initiate) on Mar 08, 2010 at 04:33 UTC |