Subject: | twig handler 'foo/*' causes syntax-error in eval |
Ciao Michel,
If I create a twig_handler with an xpath including a '*', like so:
my $t = XML::Twig->new(
twig_handlers => {
'foo/*' => sub { },
}
);
the new() call immediately exits with what looks like errors in codegen:
wrong handler condition '' (syntax error at (eval 13) line 11, near "( ) "
Global symbol "@new_current_elts" requires explicit package name at
(eval 13) line 13.
syntax error at (eval 13) line 13, near ") {"
Global symbol "@current_elts" requires explicit package name at (eval
13) line 14.
<snip more Global symbol errors>
syntax error at (eval 13) line 26, near ";
}"
(eval 13) has too many errors
I'm uncertain if the xpath syntax I'm trying to pass is
unexpected/wrong, but I guess this error isn't intended in any case ;-)
Cheers,
Hakim