lib/PublicInbox/Tmpfile.pm | 7 +++++--
diff --git a/lib/PublicInbox/Tmpfile.pm b/lib/PublicInbox/Tmpfile.pm
index 25bb3a52720e42748ad6d8642102439a1382b51e..eb0fce0036be0c168f5f94212589661508c3e1b8 100644
--- a/lib/PublicInbox/Tmpfile.pm
+++ b/lib/PublicInbox/Tmpfile.pm
@@ -2,8 +2,8 @@ # Copyright (C) 2019-2020 all contributors
# License: AGPL-3.0+
package PublicInbox::Tmpfile;
use strict;
-use warnings;
-use base qw(Exporter);
+use v5.10.1;
+use parent qw(Exporter);
our @EXPORT = qw(tmpfile);
use Fcntl qw(:DEFAULT);
use Errno qw(EEXIST);
@@ -13,6 +13,9 @@ # use tmpfile instead of open(..., '+>', undef) so we can get an
# unlinked filename which makes sense when viewed with lsof
# (at least on Linux)
# And if we ever stop caring to have debuggable filenames, O_TMPFILE :)
+#
+# This is also for Perl <5.32 which lacks: open(..., '+>>', undef)
+#
sub tmpfile ($;$$) {
my ($id, $sock, $append) = @_;
if (defined $sock) {