in reply to XML::Parser Object Orientation problem
The general trick to solve this issue is to use an anonymous sub as a shim. Consider:
Start => sub {$self->handleStartTag (@_)},
If you have extra parameters you want to pass to the handler you can include those before @_ (after works too if you can guarantee the length of @_, but that's generally not a safe thing to assume).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Parser Object Orientation problem
by shug94 (Sexton) on Aug 30, 2009 at 02:53 UTC | |
by GrandFather (Saint) on Sep 08, 2009 at 00:38 UTC |