Greg Matheson wrote:
I got one failure with 5.6.2 and passes with 5.8. The problem
appears to be the constant pragma, which doesn't seem to have an
independent contemporary existence on CPAN.
[...]
Because it is not failing on 5.8, I suspect that in 5.6.2 the
constants pragma
didn't have:
Defining multiple constants at once
Indeed, the constant pragma began supporting this feature with Perl 5.8
Line 16 of my module is:
use constant {
C1 => 'C1',
C2 => 'C2',
and it continues on this way to line 40.
PREV => "PREV",
COLORS => "COLORS",
};
What do I do now? constants doesn't seem to have a contemporary
existence on CPAN distinct from perl.
If you want your module to be compatible with Perl 5.6, you can
rewrite your statement using multiple "use constant" calls.
Otherwise, you can simply add a "require 5.008" in your Makefile.PL
in order to indicate that your module needs Perl 5.8.
--
Sébastien Aperghis-Tramoni
Close the world, txEn eht nepO.