That's a perfect example of why you should be reading the directory listing from within Perl (i.e. the opendir/readdir solution), rather than using a non-portable external command.
On the department's server, `ls` is aliased to `ls -F`. The -F option causes ls to add * to executables, / to directories, and @ to symbolic links. Useful when looking at a directory listing from the command prompt; not useful when getting a list of filenames within Perl. | [reply] |
I believe that the reason there are *'s after some files is
because ls is aliased to ls -F, which will add a * to the end
of files that are executeable. It will also add some other
characters onto files that are directories, symlinks, etc....
You won't run into that using readdir though. Hope this helps!
- Brad | [reply] |