http://www.perlmonks.org?node_id=1007881


in reply to How can I run an folder full of text files through a perl script?

If you mean have a script process all the files in a folder (rather than using a loop to invoke the script for each file in the folder in turn) then you can either (using OS magic - *nix in particular) pass all the files on the command line using a glob (*), or you pass the folder into the script and use either File::Find or opendir/readdir to run through the files and process them.

True laziness is hard work