in reply to Printing to a file problem

Check to be sure that you are actually opening OUT_FILE.
open (OUT_FILE, ">$OUTPUT_PATH/$SUB_DIR/$NEW_FILE") or die "$!";
-sauoq
"My two cents aren't worth a dime.";