From patchwork Sat Jan 30 19:52:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Fitzenreiter X-Patchwork-Id: 3839 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4DSlHv5wptz3wxn for ; Sat, 30 Jan 2021 19:53:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4DSlHt5Vtwznc; Sat, 30 Jan 2021 19:53:14 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4DSlHt43g6z2xvK; Sat, 30 Jan 2021 19:53:14 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4DSlHr6FRhz2xVW for ; Sat, 30 Jan 2021 19:53:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4DSlHr1J8qzdD; Sat, 30 Jan 2021 19:53:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1612036392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=5M2I/mAT16F1VLOMX57jWVMF/5byfn5v25zUY1vu2es=; b=Kkp5mILJaGn4x06ZcLXYcVXktbRiCGKUOzbTGbWNBaYO0OJmTR5LuMXsE03/1yeKPYw3bd U4wceY0eBsx8f7G7Ut7SbVhdDLVYJF69eeo6Yf5UwZ/sv63iOdJd7OBpZPVa0QJDusscau y2Q9Ty6+PiOoJF4DQ5DIa57CLluxIUBI2gDTWe6+cLgRJuzVoLpJrWH78B5JyD/qzQOnGZ hWYMUUXrrkB71suqqNGWNx6g5CMp3vqOlFain78Ux95IGUlOszL9csdhrHlnANx1jeeMOd aD/nUAyGeRay1JILpTNjvpL9u3JEYm51+4G5QXaohR6i7IZZr6viU53LtV/IvQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1612036392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=5M2I/mAT16F1VLOMX57jWVMF/5byfn5v25zUY1vu2es=; b=ydC2coON51CmbpbSUUTJPjk0dNE/lKkKovw5/TNvGcWeQWW524cT5Zu1lwJAV1t/v7uBFi hZUMzmaWCQOKiTAg== From: Arne Fitzenreiter To: development@lists.ipfire.org Subject: [PATCH] network-functions.pl: declare use of smartmatch Date: Sat, 30 Jan 2021 20:52:42 +0100 Message-Id: <20210130195242.25421-1-arne_f@ipfire.org> X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arne Fitzenreiter Errors-To: development-bounces@lists.ipfire.org Sender: "Development" perl complains about the use of experimental smartmatch feature if it is not declared. Signed-off-by: Arne Fitzenreiter --- config/cfgroot/network-functions.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/config/cfgroot/network-functions.pl b/config/cfgroot/network-functions.pl index 7bd6466e0..e94404f05 100644 --- a/config/cfgroot/network-functions.pl +++ b/config/cfgroot/network-functions.pl @@ -25,6 +25,7 @@ package Network; require "/var/ipfire/general-functions.pl"; +use experimental 'smartmatch'; use Socket; # System ethernet configuration