I am trying to implement an XML file parser in Perl. However perl seems to read the file as if it was a .TXT file , where one line in the .XML file is being seen as several lines in the .TXT file. When the xml file is viewed using Internet Explorer the line appears as one line but if I open the same file using Notepad the one line appears as several lines so my parser seems to be reading the xml file as a text file and i'm not getting the whole input line to be parsed. Any ideas ?