Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-08-28 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (263 votes), past polls