Subject: Announcing: News::NNTPClient version 0.15
From: [email-masked] (Rodger Anderson)
Date: 19 May 1995 04:02:28 GMT
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc,comp.lang.perl

Announcing: News::NNTPClient version 0.15

A Perl 5 module to talk to NNTP (RFC977) servers.

This module implements a client interface to NNTP, enabling a perl
application to talk to NNTP servers.  It uses the OOP interface
introduced with perl5.

Here is a short example.  It prints all articles in the news group
"test" newer than one hour.

#!/usr/local/bin/perl -w

use News::NNTPClient;

$c = new News::NNTPClient;

foreach ($c->newnews("test", time - 3600)) {
    print $c->article($_);
}
__END__

All the standard and most of the non-standard NNTP commands are
implemented as "methods".  Those commands that generate multiple lines
return either an array of lines or a reference to an array of lines,
depending on context.  Other commands return whatever would likely be
useful.  For example, the stat method returns a Message-ID if
successful.  All commands return a false value if they fail.

News::NNTPClient.pm may be found at:

    ftp://metronet.com/pub/perl/perl5/extensions/NNTPClient-0.15

or you may send me mail at [email-masked] with the body of the
message beginning with:

    send nntpclient

Install in:

     <perl5lib>/News/NNTPClient.pm

where <perl5lib> is often /usr/local/lib/perl5.

Be sure to strip off anything before the ---cut---here--- line.

The documentation is in pod format as part of the module.  To view
with nroff, try this:

    pod2man NNTPClient.pm | nroff -man | less

-- 
Rodger Anderson