]> Sergey Matveev's repositories - public-inbox.git/commitdiff
daemon: use v5.10.1, disable local warnings
authorEric Wong <e@80x24.org>
Tue, 12 Oct 2021 11:46:57 +0000 (11:46 +0000)
committerEric Wong <e@80x24.org>
Tue, 12 Oct 2021 21:46:31 +0000 (21:46 +0000)
We're moving towards relying on "perl -w" for warnings and
v5.12 for strict.

lib/PublicInbox/Daemon.pm

index 0acd4ee9946c4d8f5dd29a25a6eddab0ef5f97c1..70d0f1c5de1af336fae7d1c4e824ed6c9f66996d 100644 (file)
@@ -6,8 +6,8 @@
 # and/or lossy connections.
 package PublicInbox::Daemon;
 use strict;
-use warnings;
-use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev/;
+use v5.10.1;
+use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev);
 use IO::Handle; # ->autoflush
 use IO::Socket;
 use POSIX qw(WNOHANG :signal_h);
@@ -15,7 +15,7 @@ use Socket qw(IPPROTO_TCP SOL_SOCKET);
 STDOUT->autoflush(1);
 STDERR->autoflush(1);
 use PublicInbox::DS qw(now);
-require PublicInbox::Listener;
+use PublicInbox::Listener;
 use PublicInbox::EOFpipe;
 use PublicInbox::Sigfd;
 use PublicInbox::Git;