title: Perl date difference which are in different formats
body: <p>I have two dates as below in my perl code-</p>
  
  <pre><code>my $asof_date;
  chomp($asof_date = `date +'%m/%d/%Y'`);
  </code></pre>
  
  <p>And another date coming from sql table as -
  <code>$date = $syb_row[3];</code></p>
  
  <pre><code>here $date is in the form of "Dec 20 2013 12:00AM"
  </code></pre>
  
  <p>Now my help is to calculate the maturity-where maturity is difference in days between two dates(i.e $asof_date &amp; $date in above case) divided by 365.</p>
  
  <p>And yes I have limited module installed as parsedate is not installed.</p>
  
  <p>thanks in advance.</p>