This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Committing the current freeze and release plan for 5.14. khw++ for
[perl5.git] / Porting / corelist-diff
CommitLineData
515351d1
RS
1use strict;
2use 5.010;
3use lib 'dist/Module-CoreList/lib';
4
5use List::MoreUtils qw(uniq);
6use Module::CoreList;
7use Text::Table;
8
af23cf16
RS
9my $old_ver = "5.010000";
10my $new_ver = "5.011005";
515351d1
RS
11
12my $old = $Module::CoreList::version{ $old_ver };
13my $new = $Module::CoreList::version{ $new_ver };
14
af23cf16 15my $table = Text::Table->new('perl', \' | ', $old_ver, \' | ', $new_ver);
515351d1
RS
16
17for 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
26print $table;