in reply to
Unix shell ls vs readdir
Your
ls
solution will produce different results from your
readdir
solution if you have "hidden" links, such as:
.foo -> tomcat
[download]
If that is a concern for you, use
ls -la
Comment on
Re: Unix shell ls vs readdir
Select
or
Download
Code
In Section
Seekers of Perl Wisdom