Skip to content

Commit

Permalink
#161 and #165 - squash numeric warning in cpan -O
Browse files Browse the repository at this point in the history
Don't need to interpret the versions as numbers. 
Just treat them as strings.
  • Loading branch information
briandfoy committed Dec 8, 2022
1 parent 9daa374 commit 75234b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/App/Cpan.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1368,17 +1368,17 @@ sub _show_out_of_date
{
my $modules = _get_all_namespaces();

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

foreach my $module ( @$modules )
{
next unless $module = _expand_module($module);
next unless $module->inst_file;
next if $module->uptodate;
printf "%-40s %.4f %.4f\n",
printf "%-50s %-8s %-8s\n",
$module->id,
$module->inst_version ? $module->inst_version : '',
defined $module->inst_version ? $module->inst_version : 'undef',
$module->cpan_version;
}

Expand Down

0 comments on commit 75234b8

Please sign in to comment.