Perl goodies #1
Posted: Tue Apr 06, 2004 9:24 pm
[small function for following a frameset]
------------------------------------------------------------------
sub followFrameSet {
my ($content, $frameName) = @_;
print "Checking for frameset... ";
if ($content =~ /<FRAME.*name=$frameName.*src="(.*)"/) {
print "found. - ";
print "following frame-src: $1\n";
return $1;
}
print "negative.";
return;
}
------------------------------------------------------------------
------------------------------------------------------------------
sub followFrameSet {
my ($content, $frameName) = @_;
print "Checking for frameset... ";
if ($content =~ /<FRAME.*name=$frameName.*src="(.*)"/) {
print "found. - ";
print "following frame-src: $1\n";
return $1;
}
print "negative.";
return;
}
------------------------------------------------------------------