From: Vincent Pit Date: Thu, 20 Aug 2026 15:55:36 +0000 (+0200) Subject: Don't enable the 'switch' feature in tests starting perl 5.37.10 X-Git-Tag: rt154985~1 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=b005997cbb53e4dd1a0cdd694e9acf57ab7d9f6a;p=perl%2Fmodules%2FScope-Upper.git Don't enable the 'switch' feature in tests starting perl 5.37.10 As given/when was then deprecated and no longer tested. --- diff --git a/t/lib/Scope/Upper/TestGenerator.pm b/t/lib/Scope/Upper/TestGenerator.pm index df175ac..1448abd 100644 --- a/t/lib/Scope/Upper/TestGenerator.pm +++ b/t/lib/Scope/Upper/TestGenerator.pm @@ -44,7 +44,7 @@ sub import { warnings->unimport('experimental::smartmatch'); } - if ("$]" >= 5.010_001) { + if ("$]" >= 5.010_001 && "$]" < 5.037_010) { require feature; feature->import('switch'); }