Blob
1 #!/usr/bin/perl3 use v5.24;4 use warnings;5 use strict;6 use utf8;7 use Module::CoreList;9 # Install the Module::CoreList module from CPAN. Print a list of10 # all the modules that came with v5.24. To build a hash whose keys11 # are the names of the modules that came with a given version of12 # perl, use this line:14 my %modules = %{ $Module::CoreList::version{5.024} };16 while (my ($key, $value) = each %modules) {17 print "$key => " . ($value//"(undefined)") ."\n";18 }