Skip to content

Commit 75234b8

Browse files
committed
#161 and #165 - squash numeric warning in cpan -O
Don't need to interpret the versions as numbers. Just treat them as strings.
1 parent 9daa374 commit 75234b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/App/Cpan.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,17 +1368,17 @@ sub _show_out_of_date
13681368
{
13691369
my $modules = _get_all_namespaces();
13701370

1371-
printf "%-40s %6s %6s\n", "Module Name", "Local", "CPAN";
1371+
printf "%-50s %8s %8s\n", "Module Name", "Local", "CPAN";
13721372
print "-" x 73, "\n";
13731373

13741374
foreach my $module ( @$modules )
13751375
{
13761376
next unless $module = _expand_module($module);
13771377
next unless $module->inst_file;
13781378
next if $module->uptodate;
1379-
printf "%-40s %.4f %.4f\n",
1379+
printf "%-50s %-8s %-8s\n",
13801380
$module->id,
1381-
$module->inst_version ? $module->inst_version : '',
1381+
defined $module->inst_version ? $module->inst_version : 'undef',
13821382
$module->cpan_version;
13831383
}
13841384

0 commit comments

Comments
 (0)