perl program that converts putty log of battery voltages to a csv file