Subject: | Syntax error due to qw with perl 5.18 |
Current NetPacket-SpanningTree uses foreach ... qw() without parentheses which is syntax error since perl 5.18:
+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
1..1
# Running under perl version 5.018000 for linux
# Current time local: Sat Jul 20 07:23:22 2013
# Current time GMT: Sat Jul 20 05:23:22 2013
# Using Test.pm version 1.26
syntax error at blib/lib/NetPacket/SpanningTree.pm line 250, near "$name qw(message_age hello_time max_age forward_delay)"
Global symbol "$name" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 251.
Global symbol "$data" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 251.
Global symbol "$name" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 251.
Global symbol "$packStruct" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 255.
Global symbol "$packStruct" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 256.
Global symbol "$packed_data" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 257.
Global symbol "$packStruct" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 257.
Global symbol "$data" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 258.
Global symbol "$data" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 262.
Global symbol "$data" requires explicit package name at blib/lib/NetPacket/SpanningTree.pm line 263.
syntax error at blib/lib/NetPacket/SpanningTree.pm line 270, near "$name qw(message_age hello_time max_age forward_delay)"
blib/lib/NetPacket/SpanningTree.pm has too many errors.
Compilation failed in require at test.pl line 10.
BEGIN failed--compilation aborted at test.pl line 10.
make: *** [test_dynamic] Error 255