in reply to Re: Parse Question
in thread Parse Question

The code worked great for me as well … until I used a file that consisted of an XML message :(

Replies are listed 'Best First'.
Re^3: Parse Question
by hippo (Archbishop) on Dec 11, 2019 at 09:37 UTC

    Still works fine for me even with XML input:

    $ cat base.xml <?xml version="1.0" encoding="UTF-8"?> <root> <foo>bar</foo> </root> $ perl 11109932.pl < base.xml This is what line looks like <?xml version="1.0" encoding="UTF-8"?> This is what line looks like <root> .ELEPHANTS This is what line looks like <foo>bar</foo> .ELEPHANTS This is what line looks like </root> .ELEPHANTS $

    Your steadfast reluctance to provide an SSCCE is doing you no favours.

Re^3: Parse Question
by AnomalousMonk (Archbishop) on Dec 10, 2019 at 22:00 UTC
    ... I used a file ...

    What file?!? Throw us a frickin' bone here!


    Give a man a fish:  <%-{-{-{-<