From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Bitsch To: development@lists.ipfire.org Subject: Re: [PATCH] services.cgi: avoid experimental warnings Date: Mon, 16 Jan 2023 22:28:02 +0100 Message-ID: <2a9fa89f-7132-4df6-9bc7-d96b52146b03@ipfire.org> In-Reply-To: <20230116203404.3723490-1-jon.murphy@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5727141839807988204==" List-Id: --===============5727141839807988204== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, just a little annotation after reading the Perl docs. Am 16.01.2023 um 21:34 schrieb Jon Murphy: > - add single line to code: no warnings 'experimental'; > - corrects this issue: > https://lists.ipfire.org/pipermail/development/2022-December/015113.ht= ml >=20 > Signed-off-by: Jon Murphy > --- > html/cgi-bin/services.cgi | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/html/cgi-bin/services.cgi b/html/cgi-bin/services.cgi > index 3c0f27f99..0d06ab5fe 100644 > --- a/html/cgi-bin/services.cgi > +++ b/html/cgi-bin/services.cgi > @@ -21,6 +21,7 @@ > =20 > use strict; > use feature "switch"; > +no warnings 'experimental'; Because the warnings originate from the switch statement only, we should=20 be specific: no warnings 'experimental:smartmatch'; > # enable only the following on debugging purpose > #use warnings; > #use CGI::Carp 'fatalsToBrowser'; Further the line should be placed here. This creates the right sequence=20 if the debugging mode is switched on ( by uncommenting these lines ). Regards, Bernhard --===============5727141839807988204==--