J
jbl
What am I overlooking?
use Net::NNTP;
# create a new Net::NNTP object:
$server = Net::NNTP->new("news-server.com")
or die "Can't connect to news server: $@\n";
($narticles, $first, $last, $name) =
$server->group("comp.lang.perl.misc")
or die "comp.lang.perl.misc\n";
print "$narticles $first $last $name\n";
for ($n=$first; $n<=$last; $n++)
{
@lines = $server->article($n);
print map { "$_ \n" } @lines;
}
I want to read the article, all I am getting is a reference to the
array
the print map { "$_ \n" } @lines;
this gets me
ARRAY(0x198e0d4)
not any text
Thanks
jbl
use Net::NNTP;
# create a new Net::NNTP object:
$server = Net::NNTP->new("news-server.com")
or die "Can't connect to news server: $@\n";
($narticles, $first, $last, $name) =
$server->group("comp.lang.perl.misc")
or die "comp.lang.perl.misc\n";
print "$narticles $first $last $name\n";
for ($n=$first; $n<=$last; $n++)
{
@lines = $server->article($n);
print map { "$_ \n" } @lines;
}
I want to read the article, all I am getting is a reference to the
array
the print map { "$_ \n" } @lines;
this gets me
ARRAY(0x198e0d4)
not any text
Thanks
jbl