Skip Menu |
 

This queue is for tickets about the Config-Auto CPAN distribution.

Report information
The Basics
Id: 5406
Status: resolved
Priority: 0/
Queue: Config-Auto

People
Owner: Nobody in particular
Requestors: lars [...] thegler.dk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.05
Fixed in: (no value)

Attachments


Subject: Can't modify string in character translation
Download (untitled) / with headers
text/plain 482b
Running 'make test' under perl 5.005_03, I found this error: --cut-- t/01_Config-Auto....Can't modify string in character translation at blib/lib/Config/Auto.pm line 122, near "tr/;//) " BEGIN failed--compilation aborted at t/01_Config-Auto.t line 10. dubious --cut-- This seems to be caused by a bug in Auto.pm (patch attached). This bug would also manifest itself under newer perls, but since the particular code lines are not exercised by the test cases, this is not revealed.
Download patch-Auto.pm
text/x-perl 543b
--- lib/Config/Auto.pm.orig Sat Feb 21 12:39:16 2004 +++ lib/Config/Auto.pm Sat Feb 21 12:40:02 2004 @@ -120,8 +120,8 @@ # Some general sanity checks if (exists $score{perl}) { - $score{perl} /= 2 unless ("@$data_r" =~ tr/;//) > 3 or $#$data_r < 3; - delete $score{perl} unless ("@$data_r" =~ tr/;//); + $score{perl} /= 2 unless ("@$data_r" =~ /;/) > 3 or $#$data_r < 3; + delete $score{perl} unless ("@$data_r" =~ /;/); delete $score{perl} unless ("@$data_r" =~ /([\$\@\%]\w+)/); }
Thanks, applied and released as 0.06


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.