Using Perl, how do I compare dates in the form of YYYY-MM-DD?

Viewed 28006

I have an array with n strings in format of YYYY-MM-DD (Example, "2010-10-31").

How do I compare a date to the strings in this array?

For example, delete the strings more than 30 day ago?

8 Answers
Related