Just another Perl shrine | |
PerlMonks |
Re: Swapping XML Elementsby mrborisguy (Hermit) |
on Nov 29, 2005 at 19:31 UTC ( [id://512753]=note: print w/replies, xml ) | Need Help?? |
Here's what I observe: There may or may not be a line break between the elements. However, your regex assumes that there is not. Somehow, you need to get the entire document into one variable, and run the substitutions on that variable, making sure you account for possible newlines in the variable. -Bryan
In Section
Seekers of Perl Wisdom
|
|