in reply to Re: Windows Networking
in thread Windows Networking
It's nothing to do with gethostbyname() not working on Windows, there IS an important file missing from your system - you will get the same behaviour on Unix:
If you want to test this then create a file called 'protocols' int %WINDIR%\System32\Drivers\etc and put:[root@orpheus jonathan]# perl -e 'use Net::Ping; $p = Net::Ping->new() +;' [root@orpheus jonathan]# mv /etc/protocols /etc/protocols.bak [root@orpheus jonathan]# perl -e 'use Net::Ping; $p = Net::Ping->new() +;' Can't get tcp protocol by name at -e line 1 [root@orpheus jonathan]#
In it and try your code again.tcp 6 TCP
Something else has messed your system up and it is not Perl's fault
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Windows Networking
by DaveLaw (Initiate) on Aug 10, 2004 at 14:54 UTC | |
by gellyfish (Monsignor) on Aug 10, 2004 at 15:21 UTC |