|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
HTML::Tokeparser and $attr problemby dannoura (Pilgrim) |
| on Apr 24, 2004 at 17:55 UTC ( #347866=perlquestion: print w/ replies, xml ) | Need Help?? |
|
dannoura has asked for the
wisdom of the Perl Monks concerning the following question:
hi, I'm trying to print out the href attribute of all links in a document but not succeeding for some reason. I keep getting the error: Can't use string ("</a>")as a HASH ref while strict refs in useIt's probably some stupid mistake but I'm new to HTML::TokeParser and perl so bear with me. The code is:
And the relevant part of the html is:
----------------------------------- Any comments about coding style are welcome.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||