next up previous contents
Next: FTP: the Net::FTP module Up: Perl on the Web Previous: Accessing Email: the Net::POP3   Contents

Usenet News: the News::NNTPClient module

 use News::NNTPClient; 
 
 $c = new News::NNTPClient;
 
 ($first,$last) = $c->group("alt.comp.perlcgi.freelance");
 
 foreach $artno ($first..$last){
    @article = $c->article($artno);
    print @article[0..5];
    print "Read? ";
    chomp($resp = <STDIN>);
    if($resp =~ /^y/i){
       print @article[6..$#article];
    }
    elsif($resp =~ /^q/i){
       last;
    }
 }


Phil Spector 2002-10-18