in reply to Re: Script won't run
in thread Script wont run

Ok, thank you all for your comments and new approach, I will give the new approach a try now and let you know. also, I should have mentioned this is the structure of the file I am reading:
<Node Name="MUN" Type="Connection" Descr="" Icon="mRemoteNG" Panel="Ge +neral" Username="root" Domain="" Password="a/5pqLSsMnvRfylxdN6coiFTdc +2+$ <Node Name="ubunugit" Type="Connection" Descr="" Icon="mRemoteNG" Pane +l="General" Username="root" Domain="" Password="bBxKPKXIhw1wKEV9aEUN1 +yynoRGOWT$ </Node>
Thank you

Replies are listed 'Best First'.
Re^3: Script won't run
by Athanasius (Archbishop) on Nov 22, 2015 at 13:25 UTC

    I meant to say earlier, if your input is XML — as indicated by the file extension and filehandle name in your OP — then you’ll be better off reading it with a dedicated module, such as XML::LibXML or XML::Twig.

    However, the file excerpt you show here is not valid XML.

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,