ls is going to be calling the same underlying system calls that perl's builtin opendir and readdir are going to call. You're actually going to incur more overhead in the fork-and-exec than just calling them directly.
In reply to Re^2: Automatically distributing and finding files in subdirectories
by Fletch
in thread Automatically distributing and finding files in subdirectories
by myuserid7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |