use File::Temp to create temp files, ignore undefined values if col numbers are specified