in reply to Proper syntax for using a method as a call back routine?
That code's not tested, but you get the idea.$parser->handler(sub { $self->add_link(@_) }, 'tagname,attr');
Update:Remove bad parameter I forgot to delete.
Update:Probably should be $self-> instead of $parser->. Fixed.
|
|---|