[news.software.nntp] Perl as a nntp reader

turner@smart.sps.mot.com (Robert Turner) (03/15/91)

Has anybody used perl as a nntp reader (client).  It's just a thought
that since perl has all the socket stuff and all of the data handling
capability it might be useful when trying to debug a server.

Robert


-- 
Robert Turner (602) 897-5441 Semiconductor Systems Design Technology, Motorola
turner@dover.sps.mot.com   OR   ...!uunet!dover!turner
"Most Americans do not know or appreciate the fact that citizenship is the
primary political office under a constitutional government."  Mortimer Adler

merlyn@iwarp.intel.com (Randal L. Schwartz) (03/16/91)

In article <921@nddsun1.sps.mot.com>, turner@smart (Robert Turner) writes:
| Has anybody used perl as a nntp reader (client).  It's just a thought
| that since perl has all the socket stuff and all of the data handling
| capability it might be useful when trying to debug a server.

Well, this has certainly come full circle.

All that socket stuff is in there *because* Larry Wall wanted to
rewrite rn in Perl.

He got sidetracked while writing the "Programming Perl" Nutshell
Handbook, but it is once again in his queue to complete.

I have a Perl script that connects every half-hour to half-a-dozen
NNTP servers and perform transfers, ala nntpxfer.

Just another NNTP and Perl hacker,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Intel: putting the 'backward' in 'backward compatible'..."====/

clipper@no13sun.csd.uwo.ca (Khun Yee Fung) (03/16/91)

>>>>> On 14 Mar 91 18:28:27 GMT, turner@smart.sps.mot.com (Robert Turner) said:

Robert> Has anybody used perl as a nntp reader (client).  It's just a thought
Robert> that since perl has all the socket stuff and all of the data handling
Robert> capability it might be useful when trying to debug a server.

I have written a rudimentary Perl newsreader that does not do very
much yet. Most NNTP commands (except IHAVE, SLAVE, and POST commands)
can be issued. I will not implement IHAVE and SLAVE. POST can be added
in 5 minutes, using an editor selected by the user as the editing
device. I am using the program to read messages considered read in my
.newsrc. You can certainly use it to debug a server.

I will keep adding features to it. If you are interested, I can send
you a copy. If you know perl, it will probably take 1 hour to write
your own version of the newsreader I have.

Khun Yee
--
----
Name:       Khun Yee Fung
Email:      clipper@csd.uwo.ca
Paper Mail: Department of Computer Science
            Middlesex College
            The University of Western Ontario
            London, Ontario, N6A 5B7  CANADA