From: Mischa Poslawsky Date: Mon, 26 Oct 2020 19:28:37 +0000 (+0100) Subject: parse-wormedit: silence switch feature warnings X-Git-Url: http://git.shiar.nl/wormy.git/commitdiff_plain/4a81674950329bfeb881ff6e08792daffd8cf849 parse-wormedit: silence switch feature warnings This fine v5.10 feature causes Perl v5.18 and later to complain. Keep it since it remains the best solution imho and is unlikely to break anytime soon. --- diff --git a/lib/Games/Wormy/Render.pm b/lib/Games/Wormy/Render.pm index a1f29f5..5a86452 100644 --- a/lib/Games/Wormy/Render.pm +++ b/lib/Games/Wormy/Render.pm @@ -3,6 +3,7 @@ package Games::Wormy::Render; use 5.010; use strict; use warnings; +use experimental 'switch'; use Imager; use List::Util qw(sum max); diff --git a/lib/Games/Wormy/TICalcLevels.pm b/lib/Games/Wormy/TICalcLevels.pm index 82ae3de..4748444 100644 --- a/lib/Games/Wormy/TICalcLevels.pm +++ b/lib/Games/Wormy/TICalcLevels.pm @@ -3,6 +3,7 @@ package Games::Wormy::TICalcLevels; use 5.010; use strict; use warnings; +use experimental 'switch'; use List::Util qw(sum min max); use Data::Dumper; diff --git a/lib/Games/Wormy/WormEdit.pm b/lib/Games/Wormy/WormEdit.pm index 3a729ed..15315c5 100644 --- a/lib/Games/Wormy/WormEdit.pm +++ b/lib/Games/Wormy/WormEdit.pm @@ -3,6 +3,7 @@ package Games::Wormy::WormEdit; use 5.010; use strict; use warnings; +use experimental 'switch'; use Parse::Binary::Nested qw(unpackf); diff --git a/lib/Parse/Binary/Nested.pm b/lib/Parse/Binary/Nested.pm index 6b74f64..84e0edc 100644 --- a/lib/Parse/Binary/Nested.pm +++ b/lib/Parse/Binary/Nested.pm @@ -3,6 +3,7 @@ package Parse::Binary::Nested; use 5.010; use strict; use warnings; +use experimental 'switch'; use Carp; use Exporter qw(import);