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/WwwListing.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/WwwListing.pm') diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm index 03534f03..bcb968af 100644 --- a/lib/PublicInbox/WwwListing.pm +++ b/lib/PublicInbox/WwwListing.pm @@ -9,11 +9,12 @@ use warnings; use PublicInbox::Hval qw(ascii_html); use PublicInbox::Linkify; use PublicInbox::View; +use PublicInbox::Inbox; use bytes (); use HTTP::Date qw(time2str); require Digest::SHA; require File::Spec; -{ no warnings 'once'; *try_cat = *PublicInbox::Inbox::try_cat }; +*try_cat = \&PublicInbox::Inbox::try_cat; sub list_all ($$$) { my ($self, $env, $hide_key) = @_; -- cgit v1.2.3-24-ge0c7