make sure you've added "or die" (or "&& die" for system() calls) clauses to every instance where system interface functions are called (open, chdir, etc.)
use strict; use warnings;
change to 'perl mycode.pl input_file.txt 2&>output.txt' and run 'tail -f output.txt' from another console window to see where it stops
post your code here
Don Wilde
"There's more than one level to any answer."