The next version of XML::Twig will actually cut the element if hasn't been cut before. That's easier than changing the docs ;--)
And I am still not at 100%, I meant prev_sibling, not previous, my bad.
In reply to Re^3: XML::Twig replace method behaving counter-intuitively
by mirod
in thread XML::Twig replace method behaving counter-intuitively
by Human
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |