Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 15.2 Net::NNTPChapter 15
Usenet News
Next: Reference: active


 $nntp = Net::NNTP->new([host[, options]])

Constructor. Creates a new Net::NNTP object. Arguments are:


The name of the remote host to which an NNTP connection is required. If not specified, the constructor checks the environment variables NNTPSERVER and NEWSHOST, in that order, then Net::Config. Defaults to news if nothing is found.


Options, passed as key/value pairs. Possible options are:


Maximum time, in seconds, to wait for a response from the NNTP server. Default is 120 seconds. A value of 0 causes all I/O operations to block.


Enables printing of debugging information to STDERR.

Previous: 15.2 Net::NNTPPerl in a NutshellNext: Reference: active
15.2 Net::NNTPBook IndexReference: active