title: Using Perl, how do I compare dates in the form of YYYY-MM-DD?
body: <p>I have an array with <code>n</code> strings in format of YYYY-MM-DD (Example, "2010-10-31"). </p>
  
  <p>How do I compare a date to the strings in this array? </p>
  
  <p>For example, delete the strings more than 30 day ago?</p>