Skip Menu |
 

This queue is for tickets about the AppConfig CPAN distribution.

Report information
The Basics
Id: 68068
Status: resolved
Priority: 0/
Queue: AppConfig

People
Owner: NEILB [...] cpan.org
Requestors: CELOGEEK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.66
Fixed in: 1.70



Download (untitled) / with headers
text/plain 758b
I have this bug with perl-5.12.2 and AppConfig 1.66 : Modification of a read-only value attempted at /usr/local/perl-dists//perls/perl-5.12.2/lib/site_perl/5.12.2/AppConfig/File.pm line 143. I have look at the file, it seems that when Readonly is installed, they is an issue. Here the code : # initialise $prefix to nothing (no [block]) $prefix = ''; while (<$handle>) { chomp; # Throw away everything from an unescaped # to EOL s/(^|\s+)#.*/$1/; Here the fix : # initialise $prefix to nothing (no [block]) $prefix = ''; while (local $_ = <$handle>) { chomp; # Throw away everything from an unescaped # to EOL s/(^|\s+)#.*/$1/;
Fixed in 1.70, now on CPAN. Thanks.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.