in reply to Re^2: XML::Twig parsing Problem
in thread XML::Twig parsing Problem
I don't quite understand the question, but the arguments to the handler are the twig itself and the element object, not its tag name. So if you want to change the name of the element, you need $tag->set_tag( ...).
Also, the single quotes in '$tag_text' prevent interpolation (you will get the literal text $tag_text), get rid of them and you will get the value of $tag_text.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XML::Twig parsing Problem
by saurabh.x.pandey (Initiate) on Dec 02, 2008 at 12:58 UTC | |
by sureerat (Acolyte) on Dec 02, 2008 at 18:20 UTC |