This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move ExtUtils-Manifest to cpan/
[perl5.git] / Porting / corelist-diff
1 use strict;
2 use 5.010;
3 use lib 'dist/Module-CoreList/lib';
4
5 use List::MoreUtils qw(uniq);
6 use Module::CoreList;
7 use Text::Table;
8
9 my $old_ver = "5.010000";
10 my $new_ver = "5.011005";
11
12 my $old = $Module::CoreList::version{ $old_ver };
13 my $new = $Module::CoreList::version{ $new_ver };
14
15 my $table = Text::Table->new('perl', \' | ', $old_ver, \' | ', $new_ver);
16
17 for my $lib (uniq sort (keys %$old, keys %$new)) {
18   my $old = exists $old->{ $lib } ? $old->{ $lib } // '(undef)' : '(absent)';
19   my $new = exists $new->{ $lib } ? $new->{ $lib } // '(undef)' : '(absent)';
20   
21   next if $old eq $new;
22
23   $table->add($lib, $old, $new);
24 }
25
26 print $table;