in reply to Parse Question
What does your line look like? Maybe your XML file only has a single line? You discard the first line and do not do anything with it?
Are you sure you want to split your input on the letter N?
In Section
Seekers of Perl Wisdom