in reply to New Perl User Question

To pass a file from the command line use @ARGV instead of <STDIN>. So your code:
my $processfilename=''; print "\nEnter filename to process (type exit to quit): "; chomp ($processfilename = <STDIN>);
Could be:
my $processfilename=$ARGV[0];


Sparky
FMTEYEWTK