]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
gcf2: fix autodie usage for older Perl
authorEric Wong <e@80x24.org>
Wed, 15 Nov 2023 04:32:38 +0000 (04:32 +0000)
committerEric Wong <e@80x24.org>
Wed, 15 Nov 2023 08:02:56 +0000 (08:02 +0000)
commit7d06b126e9395d96a03b37daf49019925ff0ec76
tree3d62c9e6249022b5e5a3077898224c35454d5c9d
parente618c7654794d58b299cc4928065c6a036f9d869
gcf2: fix autodie usage for older Perl

At least on Perl v5.16.3 on CentOS 7.x, use-ing autodie within
BEGIN {} affects all subroutines in that package, too.  So just
use autodie at the top-level and rely on CORE::* and try_cat
to handle cases where autodie isn't desired.
lib/PublicInbox/Gcf2.pm