Subject: | say not available with older perl versions by default |
The 'print' alternative 'say' is not available in older versions of perl
(e.g. 5.10) by default. One has to do a "use feature ':5.10';" (or use
feature say) first to enable it.
It's best to avoid say for the sake of portability and backwards
compatiblity.
Please consider the attached patch.
Subject: | no-say.diff |
--- Parser.pm.orig 2012-02-26 14:12:30.000000000 +0100
+++ Parser.pm 2012-02-26 14:23:59.000000000 +0100
@@ -19,7 +19,7 @@
}
sub error {
- say STDERR "Parse error!";
+ print STDERR "Parse error!\n";
print STDERR "Failed token was ", $_[0]->YYCurtok;
print STDERR ", value ", $_[0]->YYCurval;
print STDERR ", expected ", join(',', $_[0]->YYExpect);