There are plenty of modules out there to do this. Date::Calc is one, and a little creative use of Time::Local would also work, for example you could subtract one from the first day of the next month and then get the day.
-----Original Message----- From: Mike Blezien [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 04, 2006 11:50 AM To: Perl List Subject: Determine total days of month Hello, I am trying to come up with a function, or formula calculation, to determine the total days of a given month, IE: April which has 30 days, Feb has 28 days, March has 31 days... etc <snip> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>