in reply to Passing additional arguments to XML::Twig handlers
Use an anonymous coderef (which adds the extra arguments) to set the handler.
my $t = XML::Twig->new( twig_handlers => { name => sub { my_s( @_, "Hi +" ) } } );
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing additional arguments to XML::Twig handlers
by pseudomonas (Monk) on Jan 29, 2008 at 14:45 UTC |