in reply to readdir and recognizing difference between files and directories

Your code as posted (and changing my working directory) works for me:

Decision whether it is a file or a directory: directory: . directory: .. file: fluff.pl file: translate.pl Just print everything: . .. fluff.pl translate.pl
Working directory issues, as listed above.
  • Comment on Re: readdir and recognizing difference between files and directories
  • Download Code