in reply to XML::Twig newbie question
There is another way ,which you find it in tutorial of twig. Please see "sub make{" and its handler registration.
I wonder why links to XML::Twig documents have so much troubles...?my $twig= XML::Twig->new( twig_handlers => { topicref => sub{ topicref_processing(@_, $filenam +e);}, ); sub topicref_processing{ my($twig,$elt, $filename)=@_; ####you can get twig and elt here. }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: XML::Twig newbie question
by Anonymous Monk on Sep 18, 2012 at 20:02 UTC | |
by remiah (Hermit) on Sep 19, 2012 at 11:59 UTC |
In Section
Seekers of Perl Wisdom