From 4e6ac2801a63b992002379da847e568e4271c680 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Wed, 22 May 2024 11:33:19 +0200 Subject: [PATCH] - refactoring, changed to "use v5.36;" (deprecates "use strict; use warnings; use feature qw(say);") --- lib/SLUB/LZA/TA.pm | 5 +---- lib/SLUB/LZA/TA/Command/count.pm | 4 +--- lib/SLUB/LZA/TA/Command/info.pm | 4 +--- lib/SLUB/LZA/TA/Command/init.pm | 4 +--- lib/SLUB/LZA/TA/Crypt.pm | 3 +-- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/lib/SLUB/LZA/TA.pm b/lib/SLUB/LZA/TA.pm index 63d9191..b5e66c3 100644 --- a/lib/SLUB/LZA/TA.pm +++ b/lib/SLUB/LZA/TA.pm @@ -1,18 +1,15 @@ package SLUB::LZA::TA; -use strict; -use warnings; +use v5.36; use Path::Tiny qw( path ); use YAML qw(LoadFile); use LWP::UserAgent; use SOAP::Lite; use Carp qw( croak ); -use feature qw(say); use Regexp::Optimizer; use IO::Zlib; use Text::CSV_PP; use SLUB::LZA::TA::Crypt; use namespace::clean; - use App::Cmd::Setup -app; diff --git a/lib/SLUB/LZA/TA/Command/count.pm b/lib/SLUB/LZA/TA/Command/count.pm index b3d9363..e34a307 100644 --- a/lib/SLUB/LZA/TA/Command/count.pm +++ b/lib/SLUB/LZA/TA/Command/count.pm @@ -1,8 +1,6 @@ package SLUB::LZA::TA::Command::count; use SLUB::LZA::TA -command; -use strict; -use warnings; -use feature qw(say); +use v5.36; use SLUB::LZA::TA::Archivematica::Elasticsearch; use SLUB::LZA::TA::Archivematica::Elasticsearch::PrepareQuery; use Data::Printer; diff --git a/lib/SLUB/LZA/TA/Command/info.pm b/lib/SLUB/LZA/TA/Command/info.pm index b494822..9ea60ce 100644 --- a/lib/SLUB/LZA/TA/Command/info.pm +++ b/lib/SLUB/LZA/TA/Command/info.pm @@ -1,8 +1,6 @@ package SLUB::LZA::TA::Command::info; use SLUB::LZA::TA -command; -use strict; -use warnings; -use feature qw(say); +use v5.36; use SLUB::LZA::TA::Archivematica::Elasticsearch; use namespace::autoclean; # VERSION diff --git a/lib/SLUB/LZA/TA/Command/init.pm b/lib/SLUB/LZA/TA/Command/init.pm index efc3cbe..0063e5f 100644 --- a/lib/SLUB/LZA/TA/Command/init.pm +++ b/lib/SLUB/LZA/TA/Command/init.pm @@ -1,9 +1,7 @@ package SLUB::LZA::TA::Command::init; use SLUB::LZA::TA -command; -use strict; -use warnings; +use v5.36; use YAML qw(DumpFile); -use feature qw(say); use IO::Prompt::Tiny qw/prompt/; use Crypt::Mode::CBC; use Path::Tiny; diff --git a/lib/SLUB/LZA/TA/Crypt.pm b/lib/SLUB/LZA/TA/Crypt.pm index d51375f..8375235 100644 --- a/lib/SLUB/LZA/TA/Crypt.pm +++ b/lib/SLUB/LZA/TA/Crypt.pm @@ -1,6 +1,5 @@ package SLUB::LZA::TA::Crypt; -use strict; -use warnings; +use v5.36; use Crypt::Mode::CBC; use namespace::autoclean; -- GitLab