All pastes #16971 Raw Edit

Unnamed

public text v1 · immutable
#16971 ·published 2005-07-05 20:29 UTC
rendered paste body
#!/usr/bin/perl -w
use IO::Socket;


my $sock;
while(not($sock  = new IO::Socket::INET("nashvillestandup.com:80"))){
}
print $sock "GET / HTTP/1.1\nHost: nashvillestandup.com\n\n";
my $stuff=0;
while(<$sock>){
        if (/SCHEDULE begin/){
                $stuff=1;
        }
        elsif(/SCHEDULE end/){
                close $sock;

        }
        elsif($stuff==1){
                $html.=$_;
        }
}
print $html;