Skip Menu |

This queue is for tickets about the PNI CPAN distribution.

Report information
The Basics
Id: 69733
Status: resolved
Priority: 0/
Queue: PNI

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

Bug Information
Severity: Normal
Broken in: 0.15
Fixed in: 0.17



Subject: Fails with perl 5.8.{8,9}
As per subject. Example fail report: http://www.cpantesters.org/cpan/report/3879bac0-a2c1-11e0-80ee-1922e1de4735 Fails with Error: Modification of a read-only value attempted at /home/david/cpantesting/perl-5.8.9/.cpan/build/PNI-0.15-PZHjR2/blib/lib/PNI/Finder.pm line 13. The line 13 contains: 13 $self = bless \__PACKAGE__, __PACKAGE__;^M Indeed this construct was not supported in 5.8. What does it do that would be better than bless \my $v, __PACKAGE__ ? I tried to change the file to the latter and all tests pass, so I think this may be a cheao fix to make this code compatible with perl 5.8 again. What do you think? Thanks && Regards,
Hi Andreas, I applied your suggestion and released version 0.16, thank you very much. By the way, I've planned to change that class in next version, so it will not be a singleton anymore and will inherit from PNI::Item class, so it is supposed it will still pass tests in 5.8. Thank you again, Gianluca.