[25798] in Perl-Users-Digest
Perl-Users Digest, Issue: 8037 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun May 1 14:10:15 2005
Date: Sun, 1 May 2005 11:10:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 1 May 2005 Volume: 10 Number: 8037
Today's topics:
Re: REMOTE_HOST aint working <wyzelli@yahoo.com>
Re: REMOTE_HOST aint working <nobull@mail.com>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <1usa@llenroc.ude.invalid>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <1usa@llenroc.ude.invalid>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <1usa@llenroc.ude.invalid>
Re: REMOTE_HOST aint working <1usa@llenroc.ude.invalid>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <tadmc@augustmail.com>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <no@email.com>
Re: REMOTE_HOST aint working <no@email.com>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <no@email.com>
Re: REMOTE_HOST aint working <no@email.com>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <noreply@gunnar.cc>
Re: REMOTE_HOST aint working <pilkowsk@informatik.uni-marburg.de>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working (Anno Siegel)
Re: REMOTE_HOST aint working <1usa@llenroc.ude.invalid>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <hackeras@gmail.com>
Re: REMOTE_HOST aint working <1usa@llenroc.ude.invalid>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 01 May 2005 10:27:13 GMT
From: "Peter Wyzl" <wyzelli@yahoo.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <5a2de.35674$5F3.7235@news-server.bigpond.net.au>
"Nikos" <hackeras@gmail.com> wrote in message
news:d529ab$hj6$1@nic.grnet.gr...
: my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
:
: Why the above line of code always returns the ip address and never the
: hostname of the visitor of my indx.pl cgi script?
From Perlop:
Binary ``||'' performs a short-circuit logical OR operation. That is, if the
left operand is true, the right operand is not even evaluated.
P
------------------------------
Date: Sun, 01 May 2005 12:01:19 +0100
From: Brian McCauley <nobull@mail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52ctv$a2h$1@slavica.ukpost.com>
Nikos wrote:
> my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
>
> Why the above line of code always returns the ip address and never the
> hostname of the visitor of my indx.pl cgi script?
Probably because your web server is not configured to resolve the IP
address.
This, of course, has not the least thing to do with Perl.
------------------------------
Date: Sun, 01 May 2005 15:41:55 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52iqf$pnt$1@nic.grnet.gr>
Brian McCauley wrote:
>
>
> Nikos wrote:
>
>> my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
>>
>> Why the above line of code always returns the ip address and never the
>> hostname of the visitor of my indx.pl cgi script?
>
>
> Probably because your web server is not configured to resolve the IP
> address.
>
> This, of course, has not the least thing to do with Perl.
Ah, i see.
So, i must configure somehow httpd.conf to resolve ip addresses to
hostnames?
Any ideas on how to do this?
------------------------------
Date: Sun, 01 May 2005 12:52:03 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: REMOTE_HOST aint working
Message-Id: <Xns96495A19B1A1Basu1cornelledu@127.0.0.1>
Nikos <hackeras@gmail.com> wrote in news:d52iqf$pnt$1@nic.grnet.gr:
> So, i must configure somehow httpd.conf to resolve ip addresses to
> hostnames?
>
> Any ideas on how to do this?
Yes. Read the dcoumentation for your web server.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Sun, 01 May 2005 16:45:41 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52mi1$t15$1@nic.grnet.gr>
A. Sinan Unur wrote:
> Nikos <hackeras@gmail.com> wrote in news:d52iqf$pnt$1@nic.grnet.gr:
>
>
>>So, i must configure somehow httpd.conf to resolve ip addresses to
>>hostnames?
>>
>>Any ideas on how to do this?
>
>
> Yes. Read the dcoumentation for your web server.
I searched the docs. nothing relevant.
------------------------------
Date: Sun, 01 May 2005 16:46:32 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52mjk$t15$2@nic.grnet.gr>
Brian McCauley wrote:
>
>
> Nikos wrote:
>
>> my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
>>
>> Why the above line of code always returns the ip address and never the
>> hostname of the visitor of my indx.pl cgi script?
>
>
> Probably because your web server is not configured to resolve the IP
> address.
a asked in #apache on UnderNet and they told me that Apache isnt
responsible for this.
------------------------------
Date: Sun, 01 May 2005 13:52:34 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: REMOTE_HOST aint working
Message-Id: <Xns9649645A46D6Casu1cornelledu@127.0.0.1>
Nikos <hackeras@gmail.com> wrote in news:d52mjk$t15$2@nic.grnet.gr:
> Brian McCauley wrote:
>>
>>
>> Nikos wrote:
>>
>>> my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
>>>
>>> Why the above line of code always returns the ip address and never
>>> the hostname of the visitor of my indx.pl cgi script?
>>
>>
>> Probably because your web server is not configured to resolve the IP
>> address.
>
> a asked in #apache on UnderNet and they told me that Apache isnt
> responsible for this.
Well, that says more about the ignorance of the people who answered your
question.
Anyway, your attempt at social engineering is rather lame.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Sun, 01 May 2005 16:58:39 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52nab$f9$1@nic.grnet.gr>
A. Sinan Unur wrote:
> Nikos <hackeras@gmail.com> wrote in news:d52mjk$t15$2@nic.grnet.gr:
>
>
>>Brian McCauley wrote:
>>
>>>
>>>Nikos wrote:
>>>
>>>
>>>>my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
>>>>
>>>>Why the above line of code always returns the ip address and never
>>>>the hostname of the visitor of my indx.pl cgi script?
>>>
>>>
>>>Probably because your web server is not configured to resolve the IP
>>>address.
>>
>>a asked in #apache on UnderNet and they told me that Apache isnt
>>responsible for this.
>
>
> Well, that says more about the ignorance of the people who answered your
> question.
>
> Anyway, your attempt at social engineering is rather lame.
Man, just tell me where can i read on this and i will.
I googled and asked but it didnt work out.
------------------------------
Date: Sun, 01 May 2005 14:09:35 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: REMOTE_HOST aint working
Message-Id: <Xns9649673D3A92Dasu1cornelledu@127.0.0.1>
Nikos <hackeras@gmail.com> wrote in news:d52nab$f9$1@nic.grnet.gr:
> A. Sinan Unur wrote:
>> Nikos <hackeras@gmail.com> wrote in news:d52mjk$t15$2@nic.grnet.gr:
>>
>>
>>>Brian McCauley wrote:
>>>
>>>>
>>>>Nikos wrote:
>>>>
>>>>
>>>>>my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
>>>>>
>>>>>Why the above line of code always returns the ip address and never
>>>>>the hostname of the visitor of my indx.pl cgi script?
>>>>
>>>>
>>>>Probably because your web server is not configured to resolve the IP
>>>>address.
>>>
>>>a asked in #apache on UnderNet and they told me that Apache isnt
>>>responsible for this.
>>
>>
>> Well, that says more about the ignorance of the people who answered
>> your question.
>>
>> Anyway, your attempt at social engineering is rather lame.
>
> Man, just tell me where can i read on this and i will.
> I googled and asked but it didnt work out.
I find that hard to believe.
In any case, this is not the appropriate place to ask this question. You
can try one of:
comp.infosystems.www.servers.unix
comp.infosystems.www.servers.ms-windows
alt.apache.configuration
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Sun, 01 May 2005 14:16:13 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: REMOTE_HOST aint working
Message-Id: <Xns9649685C3E3FAasu1cornelledu@127.0.0.1>
Brian McCauley <nobull@mail.com> wrote in news:d52ctv$a2h$1
@slavica.ukpost.com:
> Nikos wrote:
>> my $host = $ENV{'REMOTE_HOST'} || $ENV{'REMOTE_ADDR'};
>>
>> Why the above line of code always returns the ip address and never the
>> hostname of the visitor of my indx.pl cgi script?
>
> Probably because your web server is not configured to resolve the IP
> address.
>
> This, of course, has not the least thing to do with Perl.
On the other hand, the OP might want to avoid the performance penalty
involved in turning host name lookups on for every request, but only do
look ups when his script is accessed. For that purpose, take a look at:
http://search.cpan.org/~olaf/Net-DNS-0.49/lib/Net/DNS/Resolver.pm
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Sun, 01 May 2005 17:17:20 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52odc$199$2@nic.grnet.gr>
A. Sinan Unur wrote:
> http://search.cpan.org/~olaf/Net-DNS-0.49/lib/Net/DNS/Resolver.pm
Thank you Sinan. ill see if that heps me.
------------------------------
Date: Sun, 1 May 2005 10:54:00 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <slrnd79uso.gq.tadmc@magna.augustmail.com>
Nikos <hackeras@gmail.com> wrote:
> A. Sinan Unur wrote:
>> Nikos <hackeras@gmail.com> wrote in news:d52iqf$pnt$1@nic.grnet.gr:
>>
>>
>>>So, i must configure somehow httpd.conf to resolve ip addresses to
>>>hostnames?
>>>
>>>Any ideas on how to do this?
>>
>>
>> Yes. Read the dcoumentation for your web server.
>
> I searched the docs. nothing relevant.
That's too bad, but it does not change a web server question
into a Perl question.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sun, 01 May 2005 19:05:56 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52up0$6oe$1@nic.grnet.gr>
Tad McClellan wrote:
> That's too bad, but it does not change a web server question
> into a Perl question.
Well here is *a perl* answer without the need of extra modules and even
without configuring httpd.conf:
$ip = $ENV{'REMOTE_ADDR'};
@numbers = split (/\./,$ip);
$address = pack ("C4", @numbers);
$host = gethostbyaddr ($address, 2) || $ip;
I wish it could be written in just 1 line only, it would be great!
------------------------------
Date: Sun, 01 May 2005 17:14:50 +0100
From: Brian Wakem <no@email.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <3dkdjqF6tfrreU1@individual.net>
Nikos wrote:
> Tad McClellan wrote:
>
>> That's too bad, but it does not change a web server question
>> into a Perl question.
>
> Well here is *a perl* answer without the need of extra modules and even
> without configuring httpd.conf:
>
>
> $ip = $ENV{'REMOTE_ADDR'};
> @numbers = split (/\./,$ip);
> $address = pack ("C4", @numbers);
> $host = gethostbyaddr ($address, 2) || $ip;
>
>
> I wish it could be written in just 1 line only, it would be great!
my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})), 2)
|| $ENV{'REMOTE_ADDR'};
--
Brian Wakem
------------------------------
Date: Sun, 01 May 2005 17:16:13 +0100
From: Brian Wakem <no@email.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <3dkdmdF6tfrreU2@individual.net>
Brian Wakem wrote:
> Nikos wrote:
>
>> Tad McClellan wrote:
>>
>>> That's too bad, but it does not change a web server question
>>> into a Perl question.
>>
>> Well here is *a perl* answer without the need of extra modules and even
>> without configuring httpd.conf:
>>
>>
>> $ip = $ENV{'REMOTE_ADDR'};
>> @numbers = split (/\./,$ip);
>> $address = pack ("C4", @numbers);
>> $host = gethostbyaddr ($address, 2) || $ip;
>>
>>
>> I wish it could be written in just 1 line only, it would be great!
>
>
> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})),
> 2)
> || $ENV{'REMOTE_ADDR'};
Which doesn't work. But -
my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})), 2)
|| $ENV{'REMOTE_ADDR'};
does.
--
Brian Wakem
------------------------------
Date: Sun, 01 May 2005 19:16:51 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d52vdf$7bd$1@nic.grnet.gr>
Brian Wakem wrote:
>>$ip = $ENV{'REMOTE_ADDR'};
>>@numbers = split (/\./,$ip);
>>$address = pack ("C4", @numbers);
>>$host = gethostbyaddr ($address, 2) || $ip;
>>
>>
>>I wish it could be written in just 1 line only, it would be great!
>
>
>
> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})), 2)
> || $ENV{'REMOTE_ADDR'};
Cool!
------------------------------
Date: Sun, 01 May 2005 17:17:20 +0100
From: Brian Wakem <no@email.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <3dkdogF6tfrreU3@individual.net>
Brian Wakem wrote:
> Brian Wakem wrote:
>
>> Nikos wrote:
>>
>>> Tad McClellan wrote:
>>>
>>>> That's too bad, but it does not change a web server question
>>>> into a Perl question.
>>>
>>> Well here is *a perl* answer without the need of extra modules and even
>>> without configuring httpd.conf:
>>>
>>>
>>> $ip = $ENV{'REMOTE_ADDR'};
>>> @numbers = split (/\./,$ip);
>>> $address = pack ("C4", @numbers);
>>> $host = gethostbyaddr ($address, 2) || $ip;
>>>
>>>
>>> I wish it could be written in just 1 line only, it would be great!
>>
>>
>> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})),
>> 2)
>> || $ENV{'REMOTE_ADDR'};
>
>
> Which doesn't work. But -
>
> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})),
> 2)
> || $ENV{'REMOTE_ADDR'};
Now I am annoyed as I've managed to copy and paste the wrong piece of code
twice. The following *will* work.
my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})), 2)
|| $ENV{'REMOTE_ADDR'};
--
Brian Wakem
------------------------------
Date: Sun, 01 May 2005 17:19:08 +0100
From: Brian Wakem <no@email.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <3dkdrsF6tfrreU4@individual.net>
Brian Wakem wrote:
> Brian Wakem wrote:
>
>> Brian Wakem wrote:
>>
>>> Nikos wrote:
>>>
>>>> Tad McClellan wrote:
>>>>
>>>>> That's too bad, but it does not change a web server question
>>>>> into a Perl question.
>>>>
>>>> Well here is *a perl* answer without the need of extra modules and even
>>>> without configuring httpd.conf:
>>>>
>>>>
>>>> $ip = $ENV{'REMOTE_ADDR'};
>>>> @numbers = split (/\./,$ip);
>>>> $address = pack ("C4", @numbers);
>>>> $host = gethostbyaddr ($address, 2) || $ip;
>>>>
>>>>
>>>> I wish it could be written in just 1 line only, it would be great!
>>>
>>>
>>> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})),
>>> 2)
>>> || $ENV{'REMOTE_ADDR'};
>>
>>
>> Which doesn't work. But -
>>
>> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})),
>> 2)
>> || $ENV{'REMOTE_ADDR'};
>
>
> Now I am annoyed as I've managed to copy and paste the wrong piece of code
> twice. The following *will* work.
>
> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})),
> 2)
> || $ENV{'REMOTE_ADDR'};
OK I may of got it right in the first place. My newsreader is hiding the
forward slashes in the regex.
--
Brian Wakem
------------------------------
Date: Sun, 01 May 2005 19:26:47 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d53003$7su$1@nic.grnet.gr>
Brian Wakem wrote:
> OK I may of got it right in the first place. My newsreader is hiding the
> forward slashes in the regex.
Never mind, i got it from the beginning!
------------------------------
Date: Sun, 01 May 2005 18:36:50 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: REMOTE_HOST aint working
Message-Id: <3dkepqF6q8o8oU1@individual.net>
Brian Wakem wrote:
> Nikos wrote:
>>
>> $ip = $ENV{'REMOTE_ADDR'};
>> @numbers = split (/\./,$ip);
>> $address = pack ("C4", @numbers);
>> $host = gethostbyaddr ($address, 2) || $ip;
>>
>> I wish it could be written in just 1 line only, it would be great!
>
> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})), 2)
> || $ENV{'REMOTE_ADDR'};
Most things can be written in one line, and Brian showed you a way in
this case. Not sure I understand why it would be so great, though.
'short' ne 'great'
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Sun, 1 May 2005 18:37:52 +0200
From: Fabian Pilkowski <pilkowsk@informatik.uni-marburg.de>
Subject: Re: REMOTE_HOST aint working
Message-Id: <3dkeu4F6tl0u9U1@individual.net>
* Brian Wakem schrieb:
> Nikos wrote:
>>
>> Well here is *a perl* answer without the need of extra modules and even
>> without configuring httpd.conf:
>>
>> $ip = $ENV{'REMOTE_ADDR'};
>> @numbers = split (/\./,$ip);
>> $address = pack ("C4", @numbers);
>> $host = gethostbyaddr ($address, 2) || $ip;
>>
>> I wish it could be written in just 1 line only, it would be great!
>
> my $host = gethostbyaddr (pack ("C4", split (/\./,$ENV{'REMOTE_ADDR'})), 2)
>|| $ENV{'REMOTE_ADDR'};
Why doing this splitting and packing by hand when there is already a
module for? I prefer
use Socket;
my $host = gethostbyaddr( inet_aton($ENV{REMOTE_ADDR}), AF_INET );
I couldn't test it yet, but I think this version is more portable. Are
you familiar with IPv4 and IPv6 addresses?
regards,
fabian
------------------------------
Date: Sun, 01 May 2005 20:14:51 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d532q7$a94$1@nic.grnet.gr>
Fabian Pilkowski wrote:
> Why doing this splitting and packing by hand when there is already a
> module for? I prefer
>
> use Socket;
> my $host = gethostbyaddr( inet_aton($ENV{REMOTE_ADDR}), AF_INET );
>
> I couldn't test it yet, but I think this version is more portable. Are
> you familiar with IPv4 and IPv6 addresses?
Yes iam.
This can be done also liek you said but that would require the use of an
extra module that would have to be downloaded from CPAN.
With the other way it, there is no need for an extra module.
--
"Of course I cant stop you. And that would really bum me out
if that were my job. But my job isnt to stop you, its to
make it as difficult as possible, for as many as possible,
for as long as possible ."
------------------------------
Date: 1 May 2005 17:32:06 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: REMOTE_HOST aint working
Message-Id: <d533qm$ido$1@mamenchi.zrz.TU-Berlin.DE>
Nikos <hackeras@gmail.com> wrote in comp.lang.perl.misc:
> Fabian Pilkowski wrote:
>
> > Why doing this splitting and packing by hand when there is already a
> > module for? I prefer
> >
> > use Socket;
> > my $host = gethostbyaddr( inet_aton($ENV{REMOTE_ADDR}), AF_INET );
> >
> > I couldn't test it yet, but I think this version is more portable. Are
> > you familiar with IPv4 and IPv6 addresses?
>
> Yes iam.
>
> This can be done also liek you said but that would require the use of an
> extra module that would have to be downloaded from CPAN.
>
> With the other way it, there is no need for an extra module.
It appears to be your speciality to reject good advice for no good reason.
Anno
------------------------------
Date: Sun, 01 May 2005 17:35:23 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: REMOTE_HOST aint working
Message-Id: <Xns96498A1D0288Fasu1cornelledu@127.0.0.1>
Nikos <hackeras@gmail.com> wrote in news:d532q7$a94$1@nic.grnet.gr:
> Fabian Pilkowski wrote:
>
>> Why doing this splitting and packing by hand when there is already a
>> module for? I prefer
>>
>> use Socket;
>> my $host = gethostbyaddr( inet_aton($ENV{REMOTE_ADDR}), AF_INET
>> );
>>
>> I couldn't test it yet, but I think this version is more portable.
>> Are you familiar with IPv4 and IPv6 addresses?
>
> Yes iam.
>
> This can be done also liek you said but that would require the use of
> an extra module that would have to be downloaded from CPAN.
What makes you think so?
In any case, I had completely forgotten about gethostbyaddr when I
posted the suggestion to use Net::DNS. I would follow Fabian's
suggestion.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Sun, 01 May 2005 20:36:21 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d5342h$bg3$1@nic.grnet.gr>
Anno Siegel wrote:
> It appears to be your speciality to reject good advice for no good reason.
The reason i stated its important, at least to me.
--
"Of course I cant stop you. And that would really bum me out
if that were my job. But my job isnt to stop you, its to
make it as difficult as possible, for as many as possible,
for as long as possible ."
------------------------------
Date: Sun, 01 May 2005 20:37:58 +0300
From: Nikos <hackeras@gmail.com>
Subject: Re: REMOTE_HOST aint working
Message-Id: <d5345j$bg3$2@nic.grnet.gr>
A. Sinan Unur wrote:
>>This can be done also liek you said but that would require the use of
>>an extra module that would have to be downloaded from CPAN.
>
>
> What makes you think so?
>
> In any case, I had completely forgotten about gethostbyaddr when I
> posted the suggestion to use Net::DNS. I would follow Fabian's
> suggestion.
Fabian suggeston is ok, iam not opposed to it, but why load an extra
module when the job can be done as easily without it?
--
"Of course I cant stop you. And that would really bum me out
if that were my job. But my job isnt to stop you, its to
make it as difficult as possible, for as many as possible,
for as long as possible ."
------------------------------
Date: Sun, 01 May 2005 17:53:13 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: REMOTE_HOST aint working
Message-Id: <Xns96498D2265516asu1cornelledu@127.0.0.1>
Nikos <hackeras@gmail.com> wrote in news:d5345j$bg3$2@nic.grnet.gr:
> A. Sinan Unur wrote:
>
>>>This can be done also liek you said but that would require the use of
>>>an extra module that would have to be downloaded from CPAN.
[ I will join those in unequivocally stating that you *are* a liar.
I said no such thing. Those are your words, not mine. The fact that
you choose to lie when it is so easy not to is very, very troubling.
]
>> What makes you think so?
This is what I asked, which you refused to answer. What on earth makes
you think you need to download an extra module from CPAN to
use Socket;
>> In any case, I had completely forgotten about gethostbyaddr when I
>> posted the suggestion to use Net::DNS. I would follow Fabian's
>> suggestion.
>
> Fabian suggeston is ok, iam not opposed to it, but why load an extra
> module when the job can be done as easily without it?
Because his suggestion *will* continue to work regardless of changes in
the representation of IP addresses in the future.
Sinan.
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8037
***************************************