Well, I looked there too, but there doesn't seem to be an inet_addr equiv,
so I did this:
$current_ip = $ENV{'REMOTE_ADDR'};
@current_ip = split( /\./, $current_ip );
$long_current_ip = (@current_ip[0] * 16777216) +
(@current_ip[1] * 65536) + (@current_ip[2] * 256) + @current_ip[3];
which doesn't seem to work out correctly. What am I doing wrong?
Steve
At 01:28 PM 1/19/01 -0500, you wrote:
> > Is there an equivalent Perl function in any library? A search of
> > ActiveState does not seem to turn up one.
>
>At least you looked. Most people don't even bother searching on their
>own.
>
>www.perl.com and/or cpan.org both have Perl related searches:
>
>http://www.perl.com/pub/doc/manual/html/lib/Socket.html
>
>- Ron
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web