Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: XML::Twig newbie question

by remiah (Hermit)
on Sep 18, 2012 at 15:03 UTC ( #994297=note: print w/ replies, xml ) Need Help??


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.

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. }
I wonder why links to XML::Twig documents have so much troubles...?


Comment on Re: XML::Twig newbie question
Download Code
Re^2: XML::Twig newbie question
by Anonymous Monk on Sep 18, 2012 at 20:02 UTC

      Thanks.
      Updated my bookmark.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-07 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls