title: Perl sort with time stamp using hash
body: <p>I'm new to Perl and need help with sorting using the hash and/or any other possible method this can be done in Perl. </p>
  
  <p>I've an input file like below and would like to generate the output file as shown. </p>
  
  <p>I'm thinking if this can be done by putting it in hash and then comparing? Please also provide an explanations to the steps for the learning purpose if possible. </p>
  
  <p>If the file has duplicate/triplicate entries matching with different timestamp, it should only list the latest time stamp entry.  </p>
  
  <p>Input file </p>
  
  <pre>
  A May 19 23:59:14 
  B May 19 21:59:14
  A May 22 07:59:14
  C Apr 10 12:23:00
  B May 11 10:23:34
  </pre>
  
  <p>The output should be</p>
  
  <pre>
  A May 22 07:59:14
  B May 19 21:59:14
  C Apr 10 12:23:00
  </pre>