Skip Menu |

This queue is for tickets about the Erlang-Parser CPAN distribution.

Report information
The Basics
Id: 75317
Status: resolved
Priority: 0/
Queue: Erlang-Parser

People
Owner: anneli [...] cpan.org
Requestors: TEX [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.4
Fixed in: 0.5



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);
Thanks for the patch! I'll apply #75318's in a moment, as it encompasses this change.