TABLE: 2017 Position log :Fp379 place: cal time: 23:01:45 Record_Start: 69 .... TABLE: language data: time= 24hrs Record_Start: 83 Record_End: 90 .... TABLE: Record_Start: 91 #<<<<- wrong/misleading Record_End: 95 .... Modify print of $name to have a \n if its blank, so that you get: TABLE: 2017 Position log :Fp379 place: cal time: 23:01:45 Record_Start: 69 .... TABLE: language data: time= 24hrs Record_Start: 83 Record_End: 90 .... TABLE: Record_Start: 91 Record_End: 95 ....