1 | #!/opt/bin/perl |
1 | #!/opt/bin/perl |
2 | |
2 | |
|
|
3 | use FindBin; |
3 | use LWP::Simple; |
4 | use LWP::Simple; |
4 | |
5 | |
5 | open my $fh, "<", "check.txt" |
6 | open my $fh, "<", "$FindBin::Bin/checklist" |
6 | or die "check.txt: $!"; |
7 | or die "check.txt: $!"; |
7 | |
8 | |
8 | while (<$fh>) { |
9 | while (<$fh>) { |
9 | chomp; |
10 | chomp; |
|
|
11 | next if /^#/; |
|
|
12 | |
10 | my ($url, $content) = split /\t+/; |
13 | my ($url, $content) = split /\t+/; |
11 | |
14 | |
12 | $url =~ s,^([^/]+)/,$1:34567/,; |
15 | $url =~ s,^([^/]+)/,$1:34567/,; |
13 | |
16 | |
14 | $url = "http://$url"; |
17 | $url = "http://$url"; |