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

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

Replies are listed 'Best First'.
Re^4: Perl Index Replace
by dcronin135 (Acolyte) on Sep 25, 2014 at 04:09 UTC

    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.