Path: usenet.cis.ufl.edu!usenet.eel.ufl.edu!news.mathworks.com!uhog.mit.edu!bloom-beacon.mit.edu!news.starnet.net!wupost!howland.reston.ans.net!news.sprintlink.net!psgrain!nntp.teleport.com!usenet
From: [email protected] (Rodger Anderson)
Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc,comp.lang.perl
Subject: Announcing: News::NNTPClient version 0.15
Followup-To: comp.lang.perl.misc
Date: 19 May 1995 04:02:28 GMT
Organization: Hewlett-Packard, Boise ID
Lines: 54
Approved: [email protected] (comp.lang.perl.announce)
Message-ID: <[email protected]>
Reply-To: [email protected]
NNTP-Posting-Host: kelly.teleport.com
Keywords: perl5 object nntp client
Xref: usenet.cis.ufl.edu comp.lang.perl.announce:10 comp.lang.perl.misc:92 comp.lang.perl:50078

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 protected] 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