diff options
-rwxr-xr-x | run/p5p | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -5,7 +5,7 @@ use warnings; use Net::NNTP; use HTML::Entities; -my $nntp = Net::NNTP->new('nntp.perl.org') or die "Cannot contact nntp.perl.org: $!"; +my $nntp = Net::NNTP->new('nntp.perl.org', Timeout => 10) or die "Cannot contact nntp.perl.org: $!"; my ($count, $first, $last) = $nntp->group('perl.perl5.porters'); my %d = %{$nntp->xhdr('Date', [$last-10, $last])}; @@ -19,7 +19,6 @@ for ((reverse sort keys %d)[0..4]) { $f{$_} =~ s,@[^.]*\.,@<i>hidden</i>.,; my $l = "https://www.nntp.perl.org/group/perl.perl5.porters/0/0/msg$_.html"; print <<HTML; -<p> <div class="entry"> <div class="date">Date: $d{$_}</div> <div class="from">From: $f{$_}</div> |