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.
In reply to Re: Passing additional arguments to XML::Twig handlers
by Fletch
in thread Passing additional arguments to XML::Twig handlers
by pseudomonas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |