]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
network-functions.pl: declare use of smartmatch
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 30 Jan 2021 19:52:42 +0000 (20:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 1 Feb 2021 10:45:38 +0000 (10:45 +0000)
perl complains about the use of experimental smartmatch feature
if it is not declared.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/cfgroot/network-functions.pl

index 7bd6466e0c91e3b6ece894e1cae9b71a1f7cf3ed..e94404f05418925fd36c859715bdace42fc26067 100644 (file)
@@ -25,6 +25,7 @@ package Network;
 
 require "/var/ipfire/general-functions.pl";
 
 
 require "/var/ipfire/general-functions.pl";
 
+use experimental 'smartmatch';
 use Socket;
 
 # System ethernet configuration
 use Socket;
 
 # System ethernet configuration