]> Sergey Matveev's repositories - public-inbox.git/commit
syscall: modernize away from pre-Perl-5.6 conventions
authorEric Wong <e@yhbt.net>
Sun, 5 Jan 2020 23:23:36 +0000 (23:23 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Jan 2020 10:21:25 +0000 (10:21 +0000)
commit9e306626c5f83a71a93a235e3aa53b70677c122c
tree194691ee64b6f256d9cc10d5ad5ec83c226d4bd4
parent55b707d788ce13696e4411389583e720ea6dab01
syscall: modernize away from pre-Perl-5.6 conventions

"use vars" was superseded by "our" in Perl 5.6, and we
can "use parent qw(Exporter)" in favor of manipulating
@ISA directly (or the bigger "use base ...");

While we're at it, avoid multiple invocations of constant->import
by passing a hashref as a "use" parameter.
lib/PublicInbox/Syscall.pm