title: How can download via FTP all files with a current date in their name?
body: <p>I have a file format which is similar to "IDY03101.200901110500.axf". I have about 25 similar files residing in an ftp repository and want to download all those similar files only for the current date. I have used the following code, which is not working and believe the regular expression is incorrect.</p>
  
  <pre>
  my @ymb_date = "IDY.*\.$year$mon$mday????\.axf";
  
  foreach my $file ( @ymb_date) 
  {
  
   print STDOUT "Getting file: $file\n";
  
   $ftp->get($file) or warn $ftp->message;
  
  }
  </pre>
  
  <p>Any help appreciated.</p>
  
  <p>EDIT:</p>
  
  <p>I need all the current days file.
  using <code>ls -lt | grep "Jan 13"</code> works in the UNIX box but not in the script 
  What could be a vaild regex in this scenario? </p>