On Wed, November 9, 2005 1:49 pm, Yale Wilson wrote:
>
> "Gene Mat" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >I am trying to get a list of News Groups using Perl, however I get the
> > following error, when I try either list(), newsgroups(), or the active
> ()
> > $
call method "active" on an undefined value at ./getnntp.pl line
11.
>
> #!/opt/local/bin/perl
> use Net::NNTP;
> $nntp = Net::NNTP->new("news.microsoft.com",Debug,1);
> $DATE=$nntp->date;
> $GROUP=$nntp->group;
>
($narticles,$firs
ned value at ./getnntp.pl line 11.
>
> #!/opt/local/bin/perl
> use Net::NNTP;
Bzzt. Two errors already: You forgot the "-w" switch to perl,
and you probably forgot to "use strict".
Try the -w switch first, and the real error will be very obvious.
Then try "use str
I am trying to get a list of News Groups using Perl, however I get the
following error, when I try either list(), newsgroups(), or the active ()
functions.
Can't call method "active" on an undefined value at ./getnntp.pl line 11.
#!/opt/local/bin/perl
use Net::NNTP;
$nntp =