in reply to Re^2: XML parsing
in thread XML parsing

use XML::Simple; .. my $outputInfo = qx[$cmd]; $outputInfo =~ s/^.*?(?=<\?xml)//s; my $ref = XMLin($outputInfo));

Replies are listed 'Best First'.
Re^4: XML parsing
by raju_400 (Novice) on Sep 22, 2008 at 07:19 UTC
    Please let me know what the regex is doing in the example given. While trying this I got the following:

    not well-formed (invalid token) at line 624, column 71, byte 30538 at c:/perl/lib/XML/Parser.pm line 187

    regards

    Sudip

      It deletes up to but not including "<?xml"