Subject: | Version 4.10 won't work on perl-5.8 |
Hi Doug,
The "//" operator (used at line 2026 in NetCDF.pm) is unknown to perl
5.8. It croaks, complaining about an unterminated search pattern.
Probably better to keep the support for 5.8 alive and well (imo) but,
if you don't want to support perl-5.8, there probably should be a "use
5.010;" at the beginning of the Makefile.PL - at least while PDL itself
retains support for 5.8.
Line 2026 of the generated NetCDF.pm is:
my $recN = ($self->{MAXRECNUM} // 0) + 1;
I replaced that (in netcdf.pd) with:
my $recN = (defined($self->{MAXRECNUM}) ? $self->{MAXRECNUM} : 0) + 1;
Then rebuilt the module, and all works fine - so I've included that
amendment in the MS Windows ppm packages for 4.10 that I've just
uploaded to the sisyphusion repository.
Cheers,
Rob