user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 0/4] a few minor doc updates
@ 2020-07-05 22:44  4% Eric Wong
  2020-07-05 22:44  7% ` [PATCH 1/4] git: use v5.10.1, parent.pm and Time::HiRes::stat Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-07-05 22:44 UTC (permalink / raw)
  To: meta

It seems eventually we'll need to have "use v5.10.1" at the top
of every source file...  Maybe more Inline::C is coming, since
it's still got the "feel" of working in a scripting language,
mostly...

But maybe there's no point in worrying about Perl 5 being
dropped when Perl 8 comes along after 7 if the world ends this
year :P

Eric Wong (4):
  git: use v5.10.1, parent.pm and Time::HiRes::stat
  doc: daemon: update documentation around Inline::C
  doc/technical/whyperl: reword bit around installed docs
  doc/technical/whyperl: add a bit about Perl 7 announcement

 Documentation/public-inbox-daemon.pod |  4 ++--
 Documentation/technical/whyperl.txt   | 10 +++++++---
 lib/PublicInbox/Git.pm                |  7 ++++---
 3 files changed, 13 insertions(+), 8 deletions(-)

^ permalink raw reply	[relevance 4%]

* [PATCH 1/4] git: use v5.10.1, parent.pm and Time::HiRes::stat
  2020-07-05 22:44  4% [PATCH 0/4] a few minor doc updates Eric Wong
@ 2020-07-05 22:44  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-07-05 22:44 UTC (permalink / raw)
  To: meta

parent.pm is leaner than base.pm, and Time::HiRes::stat is
more accurate, so take advantage of these Perl 5.10+-isms
since it's been over a year since we left 5.8 behind.
---
 lib/PublicInbox/Git.pm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm
index 776e4832..265524ff 100644
--- a/lib/PublicInbox/Git.pm
+++ b/lib/PublicInbox/Git.pm
@@ -8,15 +8,16 @@
 # There are also API changes to simplify our usage and data set.
 package PublicInbox::Git;
 use strict;
-use warnings;
+use v5.10.1;
+use parent qw(Exporter);
 use POSIX ();
 use IO::Handle; # ->autoflush
+use Errno qw(EINTR);
 use File::Glob qw(bsd_glob GLOB_NOSORT);
+use Time::HiRes qw(stat);
 use PublicInbox::Spawn qw(popen_rd);
 use PublicInbox::Tmpfile;
-use base qw(Exporter);
 our @EXPORT_OK = qw(git_unquote git_quote);
-use Errno qw(EINTR);
 our $PIPE_BUFSIZ = 65536; # Linux default
 our $in_cleanup;
 

^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-07-05 22:44  4% [PATCH 0/4] a few minor doc updates Eric Wong
2020-07-05 22:44  7% ` [PATCH 1/4] git: use v5.10.1, parent.pm and Time::HiRes::stat Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).