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)
|
---|
In Section
Seekers of Perl Wisdom