good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I am using XML::Twig to convert XML from one form to another.
I want to be able to use XML::Twig as part of a larger package where the subs reference one another via $self->subroutinename syntax as self contains allsorts of necessary config data.
I have no issue using XML::Twig except for one thing.
The doc states setting up a callback to a twig handler is defined as :- I want to be able to set up a callback as :- However when I do this it breaks the twig handler as the twig and element are not passed into the sub. The sub is fired though. I could but would prefer not to have to code around this. Any ideas? How can I reference self if it isn't passed into the sub? Simon In reply to XML::Twig - Twig Handler question by set_uk
|
|