Message from discussion
IO::Socket::INET hostname restrictions?
Received: by 10.68.213.232 with SMTP id nv8mr33068pbc.6.1323381787548;
Thu, 08 Dec 2011 14:03:07 -0800 (PST)
MIME-Version: 1.0
Path: lh20ni84592pbb.0!nntp.google.com!news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 08 Dec 2011 16:03:07 -0600
Newsgroups: comp.lang.perl.misc
Subject: Re: IO::Socket::INET hostname restrictions?
References: <4edae754$3$fuzhry+tra$mr2ice@news.patriot.net> <dfGdndQWk9hVEULTnZ2dnUVZ7rqdnZ2d@bt.com> <1ua5r8-ac2.ln1@anubis.morrow.me.uk> <4ee02c8d$2$fuzhry+tra$mr2ice@news.patriot.net>
From: Ben Morrow <b...@morrow.me.uk>
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ma...@anubis.morrow.me.uk (Ben Morrow)
Date: Thu, 8 Dec 2011 21:58:58 +0000
Message-ID: <2io7r8-1si.ln1@anubis.morrow.me.uk>
Lines: 41
X-Usenet-Provider: http://www.giganews.com
X-AuthenticatedUsername: NoAuthUser
X-Trace: sv3-yj3iG0bL2VWC41aXfkQv96R+aBCE8RWq8g4SyFzjrLCI+COWjxhSCrFOAbHIwy6EKwBK67uZv40R6AD!vbAdP0hhbTy1vmwpsgYlTaF9TKVZCu2K2RRy+9P94UjRmDieFaGbtXPso+ZH/dW8+dPjTM8=
X-Complaints-To: abuse@btinternet.com
X-DMCA-Complaints-To: ab...@btinternet.com
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2380
Content-type: text/plain; charset=UTF-8
Quoth Shmuel (Seymour J.) Metz <spamt...@library.lspace.org.invalid>:
> In <1ua5r8-ac2....@anubis.morrow.me.uk>, on 12/07/2011
> at 11:54 PM, Ben Morrow <b...@morrow.me.uk> said:
>
> >apply the patch,
>
> What's the command, and are there any environment variables I should
> set?
Save that message (the whole message or just the patch portion, it
doesn't matter) to a file. Untar IO-1.25.tar.gz, change directory to
IO-1.25, and run
patch -p1 < saved-patch-file
perl Makefile.PL
make test
perl -Mblib -MIO::Socket::INET -e"IO::Socket::INET->new(
PeerAddr => 'whois.nic.mn', PeerPort => 43,
Timeout => 5) or die $@"
You need whatever environment variables set you need to run perl and
gcc, but nothing else. 'make test' should return quite a lot of output
followed by
All tests successful.
Files=17, Tests=180, <some more details>
Result: PASS
The last command should be all on one line, and should return
IO::Socket::INET: connect: Connection refused at -e line 1.
rather than the
IO::Socket::INET: connect: Invalid argument at -e line 1.
you get if you omit the '-Mblib'.
Ben