http://www.perlmonks.org?node_id=1069566


in reply to how list all the files and directories?

You are storing the files and directories into two arrays, but are never printing them. If you expect your program to output the filenames, then print the content of the @file array (or the filename when you grab it). .
  • Comment on Re: how list all the files and directories?