title: Perl delete all files in a directory
body: <p>How can I delete <strong>all</strong> the files in a directory, (without deleting the directory) in Perl?</p>
  
  <p>My host only allows up to 250,000 "files" and my /tmp folder fills that 250,000 qouta fast with all the session cookies going on. I cannot delete the /tmp folder in this situation. I am only permitted to delete the files within.</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>FTP clients and File managers don't exactly want to open up the folder... I assume it's because of the massive amount of files in it..</p>