Re: Offtopic: Web Standards Project

Jon Knight (jon@net.lut.ac.uk)
Mon, 10 Aug 1998 09:36:23 +0100 (BST)


On Sat, 8 Aug 1998, W. Eliot Kimber wrote:
> The major vendors have already learned that users will take what they're
> given (imagine trying to earn a living in the information management
> industry and not use computers that run Microsoft software--it's pretty
> hard).

Some of us manage just that and its not hard at all. And much less
stressful than the alternative... :-)

Tatty bye,

Jim'll

#!/usr/bin/perl -- -Whois++-client-in-6-lines-of-Perl -Beat-that-Z39.50!
use IO::Socket;sub w{$f=shift;$a{$f}=1;($h,$p,$q)=split("/",$f);$s=
IO::Socket::INET->new(PeerAddr=>"$h:$p")||return;print $s "$q\r\n";while(<$s>)
{next if(/^%/);if(/^# SERVER-TO-ASK/){while(<$s>){$x=$1 if/Name: (.*)\r\n$/;$y
=$1 if/Port: (.*)\r\n$/;$f="$x/$y/$q";@j=(@j,$f)if(/^# END/&&!$a{$f})}}else{
print}}close($s)}@j=shift;while(@j){w(pop(@j))}# whois++.pl host/port/query