[TNM] syntax error at tail_n_mail

Greg Sabino Mullane greg at turnstep.com
Mon Aug 24 17:26:07 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


> # perl tail_n_mail tnm.config.txt
> Bareword found where operator expected at tail_n_mail line 404,
> near "qr{^($llp1)(.*)}a"

It looks like you are using an older Perl that does not support 
the "a" modifier to regular expressions. This was added in version 
5.14.0, released in 2011. I will update the code to enforce having 
at least that version.

Your best option is to upgrade to a newer Perl, but if that is not an 
option, you could remove the "a" modifier from all the lines that 
have them, as well as rewrite line 1411 like so:

OLD:  my $current = $1 =~ s/\D//gr;
NEW: my $current = $1; $current =~ s/\D//g;

- -- 
Greg Sabino Mullane greg at turnstep.com
PGP Key: 0x14964AC8 202008241319
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iF0EAREDAB0WIQQlKd9quPeUB+lERbS8m5BnFJZKyAUCX0P3+wAKCRC8m5BnFJZK
yBSqAJ9RijBgEQzAmlIeBxC873xflFbKIgCeOXhJmGmffsckD4ZcdXlqEnR18iU=
=l6m9
-----END PGP SIGNATURE-----




More information about the TNM mailing list