commit 04a37e3c4e0752bccc903f1b598270439e33a53b
parent 873d96296db491c3c2265dd30498962272cc43b4
Author: René Wagner <rwagner@rw-net.de>
Date: Fri, 21 Aug 2020 18:18:18 +0200
use Modern::Perl for convenience
Diffstat:
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/.build.yml b/.build.yml
@@ -5,6 +5,7 @@ packages:
- perl-file-homedir
- perl-dbi
- perl-dbd-sqlite
+ - perl-modern-perl
- perl-text-simpletable-autowidth
sources:
- https://git.sr.ht/~rwa/photo-stats
diff --git a/phosta.pl b/phosta.pl
@@ -3,17 +3,14 @@
# https://git.sr.ht/~rwa/photo-stats
# published under BSD 3-Clause License - https://git.sr.ht/~rwa/photo-stats/tree/master/LICENSE
-use v5.32;
-use warnings;
+use Modern::Perl '2019';
no warnings 'experimental';
-use strict;
-use feature 'say';
use POSIX 'lround';
use Text::SimpleTable::AutoWidth;
use Term::ANSIColor;
use Scalar::Util 'looks_like_number';
-use Cwd;
use DBI;
+use Cwd;
use Getopt::Std;
use File::Spec::Functions;
use File::HomeDir;