in reply to Perl::Parser access attributes

I've searched for solutions, but they either don't match my example, or are too difficult for me to follow. Can anyone help me please?

http://search.cpan.org/dist/HTML-Parser/MANIFEST

eg/hanchors Extract all links from a document

start_h => [\&a_start_handler, "self,tagname,attr"], my($self, $tag, $attr) = @_; print "A $attr->{href}\n";

Do you get it now? Argspec is Argspec

Replies are listed 'Best First'.
Re^2: Perl::Parser access attributes
by liverpaul (Acolyte) on Sep 07, 2012 at 06:38 UTC
    I've been able to get it working now. Thanks for the reply :-)