4 exit 0 unless(system("plhelp",$0,(@ARGV)));
6 #http://www.google.com/intl/
9 if (! $result) {return "";}
10 if ($result !~ /^\w+:\/\
//i) {
11 $result = "http://" . $result;
12 $result =~ s/^http:\/\/\
/*/http
:\
/\//;
14 $result =~ s/(\w+):\/\/(.*)\
/[^\/]*$/$1:\/\
/$2/;
16 $result =~ s/([^:\/])\/\
//$1\
//g;
20 #http://www.google.com
23 $result =~ s/(\w+):\/\/([^\
/]*).*/$1:\
/\/$2/;
37 if ($url !~ /^(\w+):\/\
//i) {
41 if ($url !~ /^(\w+):\/\
//i) {
42 $url = "http://" . $url;
50 my $BaseUrl=GetBaseUrl
($ARGV[0]);
51 my $RootUrl=GetRootUrl
($BaseUrl);
59 s/(href|src)\s*=\s*/HREF=/gi;
60 s/'((http|ftp):\/\/[^']+?)'/HREF='$1'/g;
61 s/[^']((http|ftp):\/\/[^ \
<\
>]+)/HREF='$1'/g;
62 s/HREF=([^'][^ \<\>]+)/HREF='$1'/g;
63 s/HREF='HREF=/HREF=/g;
64 my @match = ( $_ =~ /HREF='\s*([^']+?)\s*'/g );
65 @match = FullUrl
($BaseUrl,$RootUrl,@match);# if ($BaseUrl);