Skip Menu |

This queue is for tickets about the Mac-Carbon CPAN distribution.

Report information
The Basics
Id: 78504
Status: new
Priority: 0/
Queue: Mac-Carbon

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

Bug Information
Severity: Unimportant
Broken in: 0.82
Fixed in: (no value)



Subject: Noisy tests (length() used on an @array)
At some point, Perl decided to generate a warning when you use length() on an array. The attached patch suppresses the warning, and does what I believe is the intent of the code -- at any rate, all the tests pass.
Subject: MacPerl.patch
--- MacPerl/MacPerl.old 2009-09-08 02:12:58.000000000 -0400 +++ MacPerl/MacPerl.pm 2012-07-21 12:12:22.000000000 -0400 @@ -182,7 +182,7 @@ print "Pick one of the following:\n"; } - my $num = length @$options; + my $num = length scalar @$options; for (0 .. $#{$options}) { printf " [%${num}d] %s\n", $_, $options->[$_]; }