http://www.perlmonks.org?node_id=1061076


in reply to perl substitute

Why the hell do you try to combine XML::LibXML with regexes?

(update: deleted some phrases about random coding)

To answer your question, your substitutes only operate on $_ not $doc.

Cheers Rolf

( addicted to the Perl Programming Language)