in reply to Re: How do I read all the file names of a directory into an array?
in thread How do I read all the file names of a directory into an array?

A tip about grep and map: using two in a row is almost always unnecessary. For example, the grep {} grep {} in the above code can be made into a single grep {} with the and operator.
map { qq{<a href="$_">$_</a><br>} } ## format each file sort ## sort them grep { !/^\./ and -T "$dir$_" } ## no .name files, text fil +es only readdir MYDIR
  • Comment on Re: Answer: How do I read all the file names of a directory into an array?
  • Download Code