Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 pondering the Monastery: (8)
As of 2016-06-27 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (347 votes). Check out past polls.