|
|
| P is for Practical | |
| PerlMonks |
Re: Net::NNTP ping?by rob_au (Abbot) |
| on Dec 30, 2003 at 08:39 UTC ( #317642=note: print w/ replies, xml ) | Need Help?? |
|
Given that the Net::NNTP module inherits from the IO::Socket class, you may find the connected method inherited from this class to be of use. This method returns the peer address if the socket is in a connected state or an undefined value if the socket is not connected. For example:
perl -le "print+unpack'N',pack'B32','00000000000000000000001010100100'"
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||