in reply to Printing to a file problem

My guess is that you're actually not successfully opening your output file and you just aren't being careful enough to find out if that's the case. Try this:

open (OUT_FILE, ">$OUTPUT_PATH/$SUB_DIR/$NEW_FILE") or die "$!";

~CubicSpline
"No one tosses a Dwarf!"