Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 23, 2008, 8:52 am
rate this thread
(<a...> tags) that does not have a valid url.
In the URL below, there are links that look like
Yet, the TokeParser completely ignores that link. Why ?
Any help appreciated
my $cpanurl = 'http://movielibrary.lynda.com/html/modPage.asp?ID=568 ';
my $rawHTML = get($cpanurl); # attempt to d/l the page to mem
die "LWP::Simple messed up $!" unless ($rawHTML);
my $tp = HTML::TokeParser->new($rawHTML) || die "Can't open: $!";
while (my $token = $tp->get_tag("a"))
my $url = $token-> || "-";
my $text = $tp->get_text("/a");
- » FAQ 5.15 How come when I open a file read-write it wipes it out?
- — Previous thread in » PERL Discussions