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. --- script/public-inbox-purge | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script') diff --git a/script/public-inbox-purge b/script/public-inbox-purge index 0705d170..f103ccf7 100755 --- a/script/public-inbox-purge +++ b/script/public-inbox-purge @@ -9,11 +9,11 @@ use warnings; use Getopt::Long qw(:config gnu_getopt no_ignore_case auto_abbrev); use PublicInbox::AdminEdit; PublicInbox::Admin::check_require('-index'); -require PublicInbox::Filter::Base; -require PublicInbox::MIME; +use PublicInbox::Filter::Base; +use PublicInbox::MIME; require PublicInbox::V2Writable; -{ no warnings 'once'; *REJECT = *PublicInbox::Filter::Base::REJECT } +*REJECT = \&PublicInbox::Filter::Base::REJECT; my $usage = "$0 [--all] [INBOX_DIRS] 1, all => 0, -min_inbox_version => 2 }; -- cgit v1.2.3-24-ge0c7