Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here is my attempt (in my subroutine) at getting the info but struggling getting the href part:<A HREF="http://mylink/index.html/"><FONT SIZE="-1"><STRONG>LINK NAME< +/STRONG></FONT></A>
sub wanted { if( $_ =~ /\.html?$/) { my $name = $File::Find::name; open ( F, $name ) or die "$!: $name\n"; while($line = <F>) { if($line =~ /<title>(.+)<\/title>/i) && ($line =~ /<a hre +f(.+ ##not sure here??? { $ct++; print "FILE = $File::Find::name TITLE = $1 URL = $ +2\n"; } } close F; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting URL info
by Abigail-II (Bishop) on Jul 22, 2002 at 16:15 UTC | |
|
Re: Getting URL info
by valdez (Monsignor) on Jul 22, 2002 at 18:20 UTC |