Re: HTML::Parse extract_links() doesn't see FRAME SRCs

Andy Lester (alester@fsc.follett.com)
Wed, 24 Sep 97 08:23:20 CDT


I think your subject line says it exactly: extract_links() doesn't see 
FRAME SRCs.

For that matter, most of the Internet world (specifically search engines) 
don't see FRAME SRCs, either.

Andy


______________________________ Reply Separator _________________________________
Subject: HTML::Parse  extract_links() doesn't see FRAME SRCs
Author:  David Griffin <dgriffin@yar.com> at Internet
Date:    9/23/97 6:45 PM


Mail*LinkRg SMTP               HTML::Parse  extract_links() doesn't see FRAME 
SRCs

The following code does not work as expected:

#!/usr/bin/perl

use HTML::Parse;

$html = '<FRAME SRC=\"foo1.html\"><FRAME SRC=\"foo2.html\">'; 
$tree=HTML::Parse::parse_html($html);

$link_ref = $tree->extract_links();
@link = @$link_ref;
for ($i=0; $i <= $#link; $i++) {
 print "$link[$i][0]\n";
}

Unfortunately ip prints nothing when I would expect it to print:

foo1.html
foo2.html

What gives?

Dave Griffin

~living a perl life in a java world~