in reply to Re: Perl Index Replace
in thread Perl Index Replace

If you are walking through the XML without an XML package module, you might want to consider the use of PERL's flip-flop operator, to position your read within the block of the XML you are wanting to process.

Replies are listed 'Best First'.
Re^3: Perl Index Replace
by QM (Parson) on Sep 24, 2014 at 13:08 UTC
    I would hesitate to recommend the flip-flop operator to a Perl newcomer. In fact, I would hesitate several times to recommend it to anyone. If someone is advanced enough to use it, they perhaps have already found it, and can deal with the inherent surprises.

    Without code, and without an XML walker of some type, we are just guessing according to our favored solutions. Best to see the engine before the mechanic makes a diagnosis.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

      You have a valid point. The offering only points another possible path to try. The user seemed know what part of the XML he was targeting, but, was getting hung-up on some creative code as to how to get there.