#! /usr/bin/perl use strict; use warnings; require LWP::Simple; require URI::Escape; $|=1; my $BASE; if (exists $ENV{"QUERY_STRING"}) { $BASE=($ENV{"QUERY_STRING"}=~m{^url=([^&]*)})[0]; $BASE=URI::Escape::uri_unescape($BASE); 0==@ARGV or die "ARGV count != 0"; $BASE||=""; } else { 1==@ARGV or die "ARGV count != 1"; $BASE=$ARGV[0]; } if ($ENV{"GATEWAY_INTERFACE"}) { print <<"EOH"; Content-type: text/html; charset=windows-1250 EOH } print <<"EOH";
[^<]*
} or die "No text found: $infourl"; my $p_text=$&; print <<"EOH" if !$seen_p_text{$p_text}++; $p_text EOH } die $pageurl if !$did; $pageno++; } } print <<"EOH";EOF
EOH