in reply to Printing to a file problem

Remember to always check to see if open commands are successful. I suspect the second open command failed and therefore nothing is written to the file.
open (OUT_FILE, ">$OUTPUT_PATH/$SUB_DIR/$NEW_FILE") || die "Could not create blah blah blah - $!\n";
-- vek --