Skip Menu |

This queue is for tickets about the PDL-NetCDF CPAN distribution.

Report information
The Basics
Id: 67955
Status: resolved
Worked: 10 min
Priority: 0/
Queue: PDL-NetCDF

People
Owner: Nobody in particular
Requestors: sisyphus [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 4.10
Fixed in: (no value)



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
Hi Rob: I added your suggested patch. It now works on perl 5.10 and I assume it works on 5.8 as well. I've uploaded version 4.11 to CPAN. Thanks, Doug