http://www.perlmonks.org?node_id=1046320


in reply to Re^8: create an xml file from column file
in thread create an xml file from column file

Is line 18 empty in your file? You would need to add code to skip empty lines.