Cody,
Thanks for your prompt and helpful response. After a bit of fumbling, I got perl to work from the command line and it all works.
If somebody else has some handy additions, such as letting the script let me know what the input file is, then I'd be even better off. But, this does the job.
--cheers, Gordon