Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: XML::Twig - provide additional parameters to twig_roots handlers

by remiah (Hermit)
on Sep 30, 2012 at 20:40 UTC ( #996539=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    XML::Twig->new(
        twig_roots => {
            'div' => sub{ &div(@_,$para); },
        }
    )->parsefile("my_file");
    
  2. or download this
    sub div {
      my ($t, $elt,$para) = @_;
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996539]
help
Chatterbox?
NodeReaper recites The Raven over the P.A. again

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-11-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (278 votes). Check out past polls.

    Notices?