I have a simple Perl script that I want to run on a folder full of .txt files.
I read the answers to How do I run a Perl script on multiple input files with the same extension? and did not understand how to implement the answers.
I have have Googled etc. and do not understand the answers on perlmonks.
On my Mac OS terminal I am using
perl myscript.pl input.txt > output.txt
but I don't know how to run it on a folder full of .txt files.
I'd be content with either producing a new set of modified .txt files (one output per input) or editing the files and overwriting the input with the output if that is easier.