Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Having HTML::Parser problemby nysus (Parson) |
on May 23, 2003 at 01:23 UTC ( [id://260298]=perlquestion: print w/replies, xml ) | Need Help?? |
nysus has asked for the wisdom of the Perl Monks concerning the following question:
I'm using code basically ripped from Lincoln Stein's book to get a list of links on web pages. Here's the meat:
It seemed to work beautifully until it choked on the following bit of html which is all on one line:
For some reason, the parser object is reading the single <a> tag in the code above as two <a> tags. It says the first tag contains the text "Plan adopts Romney's" and the second tag contains "ideas on higher education". I'm stumped. Like I said, the parser seems to work on every other html hyperlink it finds. And it's not that plus sign in the link because the parser works on other links with the plus sign. Does anyone see why the parser is seeing two links here? Thanks.
$PM = "Perl Monk's";
Back to
Seekers of Perl Wisdom
|
|