Your script seems to work fine. When I ran it, the substitution took place.
I don't know if there is a difference between $root->print and $twig->print, example code in the docs uses the latter but it didn't have any effect on my test runs. If you still have problems, you might use $twig just to be sure (even though I doubt it has something to do with it)
In reply to Re: Not able to replace element value using XML::Twig
by jethro
in thread Not able to replace element value using XML::Twig
by newbie_ab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |