From f1259e56d75b8f06a40fb466bee51a399cc317c5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 23 Dec 2019 23:06:03 +0000 Subject: remove "no warnings 'once'" in a few places We can use "use" to get the namespace into the "BEGIN" phase of the interpreter. While we're at it, use \&coderef syntax explicitly instead of globbing everything. --- lib/PublicInbox/Spawn.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/PublicInbox/Spawn.pm') diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index 6493ad38..c64812dd 100644 --- a/lib/PublicInbox/Spawn.pm +++ b/lib/PublicInbox/Spawn.pm @@ -172,8 +172,7 @@ if (defined $vfork_spawn) { unless (defined $vfork_spawn) { require PublicInbox::SpawnPP; - no warnings 'once'; - *pi_fork_exec = *PublicInbox::SpawnPP::pi_fork_exec + *pi_fork_exec = \&PublicInbox::SpawnPP::pi_fork_exec } sub which ($) { -- cgit v1.2.3-24-ge0c7