Quick link Q

Benjamin M. Hill (Benjamin.M.Hill@dartmouth.edu)
26 Mar 98 12:10:31 EST


Perhaps i missed this in the docs... but does there exist a regexp =
that matches HREF links on a page?  (I'm a little wary of the =
treebuilder code... even after reading the docs a few times, it is =
still intimidating.)

Or does such a beastie not (perhaps can't?) exist for the general =
case?

I was thinking the simple, "I'm still a beginner to perl" case:

@links =3D ($html_page =3D~ m/regexp/isg);

foreach $link (@links) {
	$link =3D~ /regexp2/is;
	$target =3D $1;
	$name =3D $2;
	$alt =3D $3;
	etc..
}

-Benjamin