I have a perl script that goes through a folder with a couple of thousand files.
When I started writing the script I was unaware of the perl File::Find functions, so in order to list all the files in the structure I used something along the line of:
open (FILES, "$FIND $FOLDER -type f |");
while (my $line = <FILES>) {...}
Run Code Online (Sandbox Code Playgroud)
Now however I figured I would try doing this from perl instead of launching a external program. (No real …