title: How to get all filenames in a directory and place them in a text file with Perl?
body: <p>I have been trying to write a perl script to get all of the filenames from a directory and then place each name into a text file.</p>
  
  <p>I was wondering if any good perl programmers could help me out with this. Sorry if I'm asking you to write the script, but I am sure someone could figure out how to do this in only a few lines. </p>