I'm putting together a perl script, and I'm using the following command to list all files and directories under a specified directory
`find $dir -print`
This lists all files and directories UNDER directory $dir. I simply want something that will output files and directories directly under or IN directory $dir, using the find command.
findcommand? Why not just use Perl's built-inopendirandreaddirfunctions? – Keith Thompson Oct 15 '11 at 4:41