title: How to get the last modified date for a file in Perl?
body: <p>How to get the last modified date for a file in <a href="http://en.wikipedia.org/wiki/Perl" rel="nofollow noreferrer">Perl</a>?</p>
  
  <p>I am able to get the last modified file, but I need the files of the same date from a directory using Perl. I have the solution for getting the last modified file in Stack Overflow question <em><a href="https://stackoverflow.com/questions/11840171">How to find/cut for only the filename from an output of ls -lrt in Perl</a></em>.</p>
  
  <p>But how do I fetch the output of <code>ls -lrt</code> for the latest date instead of time?</p>