shamu has asked for the wisdom of the Perl Monks concerning the following question:
$ele is always empty inside proc_list.my $twig = new XML::Twig( twig_handlers => { _all_ => $self->proc_list, }, ); sub proc_list { my $self = shift; my $ele = shift; return if($ele->name eq '#PCDATA'); my $xpath = $ele->xpath; print $xpath,"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Mixing handlers with methods
by Joost (Canon) on Dec 11, 2006 at 16:15 UTC | |
|
Re: Mixing handlers with methods
by shamu (Acolyte) on Dec 11, 2006 at 17:01 UTC |