network-functions.pl: declare use of smartmatch
Commit Message
perl complains about the use of experimental smartmatch feature
if it is not declared.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
---
config/cfgroot/network-functions.pl | 1 +
1 file changed, 1 insertion(+)
Comments
Hi Arne,
Thank you! I completely missed to include this when I started using smartmatches.
Regards
Leo
Am 30.01.2021 um 20:52 schrieb Arne Fitzenreiter:
> perl complains about the use of experimental smartmatch feature
> if it is not declared.
>
> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
> ---
> 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
@@ -25,6 +25,7 @@ package Network;
require "/var/ipfire/general-functions.pl";
+use experimental 'smartmatch';
use Socket;
# System ethernet configuration