開発環境
- macOS Mojave - Apple (OS)
- Emacs (Text Editor)
- Windows 10 Pro (OS)
- Strawberry Perl (WindowsのPerlの言語処理系)
- Visual Studio Code (Text Editor)
- Perl 5.30 (プログラミング言語)
続・初めてのPerl 改訂第2版 (Randal L. Schwartz(著)、brian d foy(著)、Tom Phoenix(著)、伊藤 直也(監修)、長尾 高弘(翻訳)、オライリージャパン)の2章(モジュールの使い方)、2.12(練習問題)2の解答を求めてみる。
コード
#!/usr/bin/env perl
use strict;
use warnings;
use v5.30;
use Module::CoreList;
say '2.';
my @modules = sort keys %{$Module::CoreList::version{5.030}};
foreach (@modules) {
printf "%-50s %s\n", $_, Module::CoreList->first_release($_);
}
入出力結果(Zsh、PowerShell、Terminal)
% ./sample2.pl
2.
Amiga::ARexx 5.023003
Amiga::Exec 5.023003
AnyDBM_File 5
App::Cpan 5.011003
App::Prove 5.010001
App::Prove::State 5.010001
App::Prove::State::Result 5.010001
App::Prove::State::Result::Test 5.010001
Archive::Tar 5.009003
Archive::Tar::Constant 5.009003
Archive::Tar::File 5.009003
Attribute::Handlers 5.007003
AutoLoader 5
AutoSplit 5
B 5.005
B::Concise 5.006001
B::Deparse 5.005
B::Op_private 5.021004
B::Showlex 5.005
B::Terse 5.005
B::Xref 5.005
Benchmark 5
CPAN 5.004
CPAN::Author 5.010001
CPAN::Bundle 5.010001
CPAN::CacheMgr 5.010001
CPAN::Complete 5.010001
CPAN::Debug 5.008009
CPAN::DeferredCode 5.010001
CPAN::Distribution 5.010001
CPAN::Distroprefs 5.008009
CPAN::Distrostatus 5.010001
CPAN::Exception::RecursiveDependency 5.010001
CPAN::Exception::blocked_urllist 5.010001
CPAN::Exception::yaml_not_installed 5.010001
CPAN::Exception::yaml_process_error 5.015002
CPAN::FTP 5.010001
CPAN::FTP::netrc 5.010001
CPAN::FirstTime 5.004
CPAN::HTTP::Client 5.013009
CPAN::HTTP::Credentials 5.013009
CPAN::HandleConfig 5.008009
CPAN::Index 5.010001
CPAN::InfoObj 5.010001
CPAN::Kwalify 5.008009
CPAN::LWP::UserAgent 5.010001
CPAN::Meta 5.01301
CPAN::Meta::Converter 5.01301
CPAN::Meta::Feature 5.01301
CPAN::Meta::History 5.01301
CPAN::Meta::Merge 5.021003
CPAN::Meta::Prereqs 5.01301
CPAN::Meta::Requirements 5.015007
CPAN::Meta::Spec 5.01301
CPAN::Meta::Validator 5.01301
CPAN::Meta::YAML 5.013009
CPAN::Mirrors 5.011003
CPAN::Module 5.010001
CPAN::Nox 5.004
CPAN::Plugin 5.02101
CPAN::Plugin::Specfile 5.02101
CPAN::Prompt 5.010001
CPAN::Queue 5.008009
CPAN::Shell 5.010001
CPAN::Tarzip 5.008009
CPAN::URL 5.010001
CPAN::Version 5.008009
Carp 5
Carp::Heavy 5.006
Class::Struct 5.004
Compress::Raw::Bzip2 5.010001
Compress::Raw::Zlib 5.009004
Compress::Zlib 5.009003
Config 5.00307
Config::Extensions 5.009002
Config::Perl::V 5.017009
Cwd 5
DB 5.006
DBM_Filter 5.008004
DBM_Filter::compress 5.008004
DBM_Filter::encode 5.008004
DBM_Filter::int32 5.008004
DBM_Filter::null 5.008004
DBM_Filter::utf8 5.008004
DB_File 5
Data::Dumper 5.005
Devel::PPPort 5.007003
Devel::Peek 5.006
Devel::SelfStubber 5.002
Digest 5.007003
Digest::MD5 5.007003
Digest::SHA 5.009003
Digest::base 5.008003
Digest::file 5.008007
DirHandle 5.002
Dumpvalue 5.00503
DynaLoader 5
Encode 5.007003
Encode::Alias 5.008
Encode::Byte 5.008
Encode::CJKConstants 5.008
Encode::CN 5.007003
Encode::CN::HZ 5.007003
Encode::Config 5.008
Encode::EBCDIC 5.008
Encode::Encoder 5.008
Encode::Encoding 5.007003
Encode::GSM0338 5.008009
Encode::Guess 5.008
Encode::JP 5.007003
Encode::JP::H2Z 5.007003
Encode::JP::JIS7 5.008
Encode::KR 5.007003
Encode::KR::2022_KR 5.008
Encode::MIME::Header 5.008
Encode::MIME::Header::ISO_2022_JP 5.008008
Encode::MIME::Name 5.008009
Encode::Symbol 5.008
Encode::TW 5.007003
Encode::Unicode 5.007003
Encode::Unicode::UTF7 5.008001
English 5
Env 5
Errno 5.005
Exporter 5
Exporter::Heavy 5.006
ExtUtils::CBuilder 5.009003
ExtUtils::CBuilder::Base 5.009003
ExtUtils::CBuilder::Platform::Unix 5.009003
ExtUtils::CBuilder::Platform::VMS 5.009003
ExtUtils::CBuilder::Platform::Windows 5.009003
ExtUtils::CBuilder::Platform::Windows::BCC 5.011002
ExtUtils::CBuilder::Platform::Windows::GCC 5.011002
ExtUtils::CBuilder::Platform::Windows::MSVC 5.011002
ExtUtils::CBuilder::Platform::aix 5.009003
ExtUtils::CBuilder::Platform::android 5.019009
ExtUtils::CBuilder::Platform::cygwin 5.009003
ExtUtils::CBuilder::Platform::darwin 5.009003
ExtUtils::CBuilder::Platform::dec_osf 5.009003
ExtUtils::CBuilder::Platform::os2 5.009003
ExtUtils::Command 5.004
ExtUtils::Command::MM 5.006002
ExtUtils::Constant 5.007003
ExtUtils::Constant::Base 5.008007
ExtUtils::Constant::ProxySubs 5.008009
ExtUtils::Constant::Utils 5.008007
ExtUtils::Constant::XS 5.008007
ExtUtils::Embed 5.00307
ExtUtils::Install 5.002
ExtUtils::Installed 5.005
ExtUtils::Liblist 5.001
ExtUtils::Liblist::Kid 5.006002
ExtUtils::MM 5.006002
ExtUtils::MM_AIX 5.008008
ExtUtils::MM_Any 5.006002
ExtUtils::MM_BeOS 5.006002
ExtUtils::MM_Cygwin 5.006
ExtUtils::MM_DOS 5.006002
ExtUtils::MM_Darwin 5.008009
ExtUtils::MM_MacOS 5.006002
ExtUtils::MM_NW5 5.006002
ExtUtils::MM_OS2 5.002
ExtUtils::MM_QNX 5.008008
ExtUtils::MM_UWIN 5.006002
ExtUtils::MM_Unix 5.002
ExtUtils::MM_VMS 5.002
ExtUtils::MM_VOS 5.008008
ExtUtils::MM_Win32 5.004
ExtUtils::MM_Win95 5.006002
ExtUtils::MY 5.006002
ExtUtils::MakeMaker 5
ExtUtils::MakeMaker::Config 5.008008
ExtUtils::MakeMaker::Locale 5.021006
ExtUtils::MakeMaker::version 5.021006
ExtUtils::MakeMaker::version::regex 5.021006
ExtUtils::Manifest 5.001
ExtUtils::Miniperl 5.00504
ExtUtils::Mkbootstrap 5.001
ExtUtils::Mksymlists 5.002
ExtUtils::Packlist 5.005
ExtUtils::ParseXS 5.008009
ExtUtils::ParseXS::Constants 5.015001
ExtUtils::ParseXS::CountLines 5.015001
ExtUtils::ParseXS::Eval 5.019002
ExtUtils::ParseXS::Utilities 5.015001
ExtUtils::Typemaps 5.015001
ExtUtils::Typemaps::Cmd 5.015007
ExtUtils::Typemaps::InputMap 5.015001
ExtUtils::Typemaps::OutputMap 5.015001
ExtUtils::Typemaps::Type 5.015001
ExtUtils::XSSymSet 5.004
ExtUtils::testlib 5.00307
Fatal 5.00307
Fcntl 5
File::Basename 5
File::Compare 5.004
File::Copy 5.002
File::DosGlob 5.00405
File::Fetch 5.009005
File::Find 5
File::Glob 5.006
File::GlobMapper 5.009004
File::Path 5.001
File::Spec 5.00405
File::Spec::AmigaOS 5.023003
File::Spec::Cygwin 5.006002
File::Spec::Epoc 5.006001
File::Spec::Functions 5.00504
File::Spec::Mac 5.00405
File::Spec::OS2 5.00405
File::Spec::Unix 5.00405
File::Spec::VMS 5.00405
File::Spec::Win32 5.00405
File::Temp 5.006001
File::stat 5.004
FileCache 5.002
FileHandle 5
Filter::Simple 5.007003
Filter::Util::Call 5.007003
FindBin 5.00307
GDBM_File 5
Getopt::Long 5
Getopt::Std 5
HTTP::Tiny 5.013009
Hash::Util 5.008
Hash::Util::FieldHash 5.009004
I18N::Collate 5
I18N::LangTags 5.007003
I18N::LangTags::Detect 5.008005
I18N::LangTags::List 5.007003
I18N::Langinfo 5.007003
IO 5.00307
IO::Compress::Adapter::Bzip2 5.010001
IO::Compress::Adapter::Deflate 5.009004
IO::Compress::Adapter::Identity 5.009004
IO::Compress::Base 5.009004
IO::Compress::Base::Common 5.009004
IO::Compress::Bzip2 5.010001
IO::Compress::Deflate 5.009004
IO::Compress::Gzip 5.009004
IO::Compress::Gzip::Constants 5.009004
IO::Compress::RawDeflate 5.009004
IO::Compress::Zip 5.009004
IO::Compress::Zip::Constants 5.009004
IO::Compress::Zlib::Constants 5.009004
IO::Compress::Zlib::Extra 5.009004
IO::Dir 5.006
IO::File 5.00307
IO::Handle 5.00307
IO::Pipe 5.00307
IO::Poll 5.006
IO::Seekable 5.00307
IO::Select 5.00307
IO::Socket 5.00307
IO::Socket::INET 5.006
IO::Socket::IP 5.019008
IO::Socket::UNIX 5.006
IO::Uncompress::Adapter::Bunzip2 5.010001
IO::Uncompress::Adapter::Identity 5.009004
IO::Uncompress::Adapter::Inflate 5.009004
IO::Uncompress::AnyInflate 5.009004
IO::Uncompress::AnyUncompress 5.009004
IO::Uncompress::Base 5.009004
IO::Uncompress::Bunzip2 5.010001
IO::Uncompress::Gunzip 5.009004
IO::Uncompress::Inflate 5.009004
IO::Uncompress::RawInflate 5.009004
IO::Uncompress::Unzip 5.009004
IO::Zlib 5.009003
IPC::Cmd 5.009005
IPC::Msg 5.005
IPC::Open2 5
IPC::Open3 5
IPC::Semaphore 5.005
IPC::SharedMem 5.008009
IPC::SysV 5.005
JSON::PP 5.013009
JSON::PP::Boolean 5.013009
List::Util 5.007003
List::Util::XS 5.010001
Locale::Maketext 5.007003
Locale::Maketext::Guts 5.008001
Locale::Maketext::GutsLoader 5.008001
Locale::Maketext::Simple 5.009005
MIME::Base64 5.007003
MIME::QuotedPrint 5.007003
Math::BigFloat 5
Math::BigFloat::Trace 5.008
Math::BigInt 5
Math::BigInt::Calc 5.007003
Math::BigInt::FastCalc 5.009003
Math::BigInt::Lib 5.025008
Math::BigInt::Trace 5.008
Math::BigRat 5.008
Math::Complex 5
Math::Trig 5.004
Memoize 5.007003
Memoize::AnyDBM_File 5.007003
Memoize::Expire 5.007003
Memoize::ExpireFile 5.007003
Memoize::ExpireTest 5.007003
Memoize::NDBM_File 5.007003
Memoize::SDBM_File 5.007003
Memoize::Storable 5.007003
Module::CoreList 5.008009
Module::CoreList::Utils 5.018001
Module::Load 5.009004
Module::Load::Conditional 5.009005
Module::Loaded 5.009004
Module::Metadata 5.013009
Moped::Msg 5.009003
NDBM_File 5
NEXT 5.007003
Net::Cmd 5.007003
Net::Config 5.007003
Net::Domain 5.007003
Net::FTP 5.007003
Net::FTP::A 5.007003
Net::FTP::E 5.007003
Net::FTP::I 5.007003
Net::FTP::L 5.007003
Net::FTP::dataconn 5.007003
Net::NNTP 5.007003
Net::Netrc 5.007003
Net::POP3 5.007003
Net::Ping 5
Net::SMTP 5.007003
Net::Time 5.007003
Net::hostent 5.004
Net::netent 5.004
Net::protoent 5.004
Net::servent 5.004
O 5.005
ODBM_File 5
OS2::DLL 5.006
OS2::ExtAttr 5.00307
OS2::PrfDB 5.00307
OS2::Process 5.00307
OS2::REXX 5.00307
Opcode 5.00307
POSIX 5
Params::Check 5.009005
Parse::CPAN::Meta 5.010001
Perl::OSType 5.013009
PerlIO 5.007003
PerlIO::encoding 5.008
PerlIO::mmap 5.015008
PerlIO::scalar 5.008
PerlIO::via 5.008
PerlIO::via::QuotedPrint 5.008
Pod::Checker 5.006
Pod::Escapes 5.009003
Pod::Find 5.006
Pod::Functions 5.002
Pod::Functions::Functions 5.02
Pod::Html 5.004
Pod::InputObjects 5.006
Pod::Man 5.006
Pod::ParseLink 5.007003
Pod::ParseUtils 5.006
Pod::Parser 5.006
Pod::Perldoc 5.008001
Pod::Perldoc::BaseTo 5.008001
Pod::Perldoc::GetOptsOO 5.008001
Pod::Perldoc::ToANSI 5.015007
Pod::Perldoc::ToChecker 5.008001
Pod::Perldoc::ToMan 5.008001
Pod::Perldoc::ToNroff 5.008001
Pod::Perldoc::ToPod 5.008001
Pod::Perldoc::ToRtf 5.008001
Pod::Perldoc::ToTerm 5.015007
Pod::Perldoc::ToText 5.008001
Pod::Perldoc::ToTk 5.008001
Pod::Perldoc::ToXml 5.008001
Pod::PlainText 5.008001
Pod::Select 5.006
Pod::Simple 5.009003
Pod::Simple::BlackBox 5.009003
Pod::Simple::Checker 5.009003
Pod::Simple::Debug 5.009003
Pod::Simple::DumpAsText 5.009003
Pod::Simple::DumpAsXML 5.009003
Pod::Simple::HTML 5.009003
Pod::Simple::HTMLBatch 5.009003
Pod::Simple::HTMLLegacy 5.009003
Pod::Simple::LinkSection 5.009003
Pod::Simple::Methody 5.009003
Pod::Simple::Progress 5.009003
Pod::Simple::PullParser 5.009003
Pod::Simple::PullParserEndToken 5.009003
Pod::Simple::PullParserStartToken 5.009003
Pod::Simple::PullParserTextToken 5.009003
Pod::Simple::PullParserToken 5.009003
Pod::Simple::RTF 5.009003
Pod::Simple::Search 5.009003
Pod::Simple::SimpleTree 5.009003
Pod::Simple::Text 5.009003
Pod::Simple::TextContent 5.009003
Pod::Simple::TiedOutFH 5.009003
Pod::Simple::Transcode 5.009003
Pod::Simple::TranscodeDumb 5.009003
Pod::Simple::TranscodeSmart 5.009003
Pod::Simple::XHTML 5.010001
Pod::Simple::XMLOutStream 5.009003
Pod::Text 5.002
Pod::Text::Color 5.006
Pod::Text::Overstrike 5.006001
Pod::Text::Termcap 5.006
Pod::Usage 5.006
SDBM_File 5
Safe 5.002
Scalar::Util 5.007003
Search::Dict 5
SelectSaver 5.002
SelfLoader 5.002
Socket 5
Storable 5.007003
Sub::Util 5.021004
Symbol 5.002
Sys::Hostname 5
Sys::Syslog 5
Sys::Syslog::Win32 5.015001
TAP::Base 5.010001
TAP::Formatter::Base 5.010001
TAP::Formatter::Color 5.010001
TAP::Formatter::Console 5.010001
TAP::Formatter::Console::ParallelSession 5.010001
TAP::Formatter::Console::Session 5.010001
TAP::Formatter::File 5.010001
TAP::Formatter::File::Session 5.010001
TAP::Formatter::Session 5.010001
TAP::Harness 5.010001
TAP::Harness::Env 5.019005
TAP::Object 5.010001
TAP::Parser 5.010001
TAP::Parser::Aggregator 5.010001
TAP::Parser::Grammar 5.010001
TAP::Parser::Iterator 5.010001
TAP::Parser::Iterator::Array 5.010001
TAP::Parser::Iterator::Process 5.010001
TAP::Parser::Iterator::Stream 5.010001
TAP::Parser::IteratorFactory 5.010001
TAP::Parser::Multiplexer 5.010001
TAP::Parser::Result 5.010001
TAP::Parser::Result::Bailout 5.010001
TAP::Parser::Result::Comment 5.010001
TAP::Parser::Result::Plan 5.010001
TAP::Parser::Result::Pragma 5.010001
TAP::Parser::Result::Test 5.010001
TAP::Parser::Result::Unknown 5.010001
TAP::Parser::Result::Version 5.010001
TAP::Parser::Result::YAML 5.010001
TAP::Parser::ResultFactory 5.010001
TAP::Parser::Scheduler 5.010001
TAP::Parser::Scheduler::Job 5.010001
TAP::Parser::Scheduler::Spinner 5.010001
TAP::Parser::Source 5.010001
TAP::Parser::SourceHandler 5.013003
TAP::Parser::SourceHandler::Executable 5.013003
TAP::Parser::SourceHandler::File 5.013003
TAP::Parser::SourceHandler::Handle 5.013003
TAP::Parser::SourceHandler::Perl 5.013003
TAP::Parser::SourceHandler::RawTAP 5.013003
TAP::Parser::YAMLish::Reader 5.010001
TAP::Parser::YAMLish::Writer 5.010001
Term::ANSIColor 5.006
Term::Cap 5
Term::Complete 5
Term::ReadLine 5.002
Test 5.00405
Test2 5.025001
Test2::API 5.025001
Test2::API::Breakage 5.025001
Test2::API::Context 5.025001
Test2::API::Instance 5.025001
Test2::API::Stack 5.025001
Test2::Event 5.025001
Test2::Event::Bail 5.025001
Test2::Event::Diag 5.025001
Test2::Event::Encoding 5.025008
Test2::Event::Exception 5.025001
Test2::Event::Fail 5.027005
Test2::Event::Generic 5.025002
Test2::Event::Note 5.025001
Test2::Event::Ok 5.025001
Test2::Event::Pass 5.027005
Test2::Event::Plan 5.025001
Test2::Event::Skip 5.025001
Test2::Event::Subtest 5.025001
Test2::Event::TAP::Version 5.025008
Test2::Event::V2 5.02701
Test2::Event::Waiting 5.025001
Test2::EventFacet 5.027005
Test2::EventFacet::About 5.027005
Test2::EventFacet::Amnesty 5.027005
Test2::EventFacet::Assert 5.027005
Test2::EventFacet::Control 5.027005
Test2::EventFacet::Error 5.027005
Test2::EventFacet::Hub 5.02701
Test2::EventFacet::Info 5.027005
Test2::EventFacet::Info::Table 5.029007
Test2::EventFacet::Meta 5.027005
Test2::EventFacet::Parent 5.027005
Test2::EventFacet::Plan 5.027005
Test2::EventFacet::Render 5.027009
Test2::EventFacet::Trace 5.027005
Test2::Formatter 5.025001
Test2::Formatter::TAP 5.025001
Test2::Hub 5.025001
Test2::Hub::Interceptor 5.025001
Test2::Hub::Interceptor::Terminator 5.025001
Test2::Hub::Subtest 5.025001
Test2::IPC 5.025001
Test2::IPC::Driver 5.025001
Test2::IPC::Driver::Files 5.025001
Test2::Tools::Tiny 5.025008
Test2::Util 5.025001
Test2::Util::ExternalMeta 5.025001
Test2::Util::Facets2Legacy 5.027005
Test2::Util::HashBase 5.025001
Test2::Util::Trace 5.025001
Test::Builder 5.006002
Test::Builder::Formatter 5.025001
Test::Builder::IO::Scalar 5.02101
Test::Builder::Module 5.008008
Test::Builder::Tester 5.008008
Test::Builder::Tester::Color 5.008008
Test::Builder::TodoDiag 5.025001
Test::Harness 5
Test::More 5.006002
Test::Simple 5.006002
Test::Tester 5.021006
Test::Tester::Capture 5.021006
Test::Tester::CaptureRunner 5.021008
Test::Tester::Delegate 5.021008
Test::use::ok 5.021006
Text::Abbrev 5
Text::Balanced 5.007003
Text::ParseWords 5
Text::Tabs 5
Text::Wrap 5.002
Thread 5.005
Thread::Queue 5.005
Thread::Semaphore 5.005
Tie::Array 5.005
Tie::File 5.007003
Tie::Handle 5.00405
Tie::Hash 5.002
Tie::Hash::NamedCapture 5.009005
Tie::Memoize 5.007003
Tie::RefHash 5.004
Tie::Scalar 5.002
Tie::StdHandle 5.008009
Tie::SubstrHash 5.002
Time::HiRes 5.007003
Time::Local 5
Time::Piece 5.009005
Time::Seconds 5.009005
Time::gmtime 5.004
Time::localtime 5.004
Time::tm 5.004
UNIVERSAL 5.00307
Unicode 5.006002
Unicode::Collate 5.007003
Unicode::Collate::CJK::Big5 5.013007
Unicode::Collate::CJK::GB2312 5.013007
Unicode::Collate::CJK::JISX0208 5.013007
Unicode::Collate::CJK::Korean 5.013007
Unicode::Collate::CJK::Pinyin 5.013007
Unicode::Collate::CJK::Stroke 5.013007
Unicode::Collate::CJK::Zhuyin 5.017007
Unicode::Collate::Locale 5.013004
Unicode::Normalize 5.007003
Unicode::UCD 5.007003
User::grent 5.004
User::pwent 5.004
VMS::DCLsym 5.004
VMS::Filespec 5.00307
VMS::Stdio 5.00307
Win32 5.008004
Win32API::File 5.008009
Win32API::File::inc::ExtUtils::Myconst2perl 5.023009
Win32CORE 5.008009
XS::APItest 5.008
XS::Typemap 5.007003
XSLoader 5.006
_charnames 5.015007
attributes 5.006
autodie 5.010001
autodie::Scope::Guard 5.021001
autodie::Scope::GuardStack 5.021001
autodie::Util 5.023
autodie::exception 5.010001
autodie::exception::system 5.010001
autodie::hints 5.010001
autodie::skip 5.019001
autouse 5.004
base 5.00405
bigint 5.008
bignum 5.008
bigrat 5.008
blib 5.004
bytes 5.006
charnames 5.006
constant 5.004
deprecate 5.011
diagnostics 5.002
encoding 5.007003
encoding::warnings 5.009002
experimental 5.019011
feature 5.009003
fields 5.005
filetest 5.006
if 5.006002
integer 5
less 5
lib 5.001
locale 5.004
meta_notation 5.02101
mro 5.009005
ok 5.021006
open 5.006
ops 5.00307
overload 5.002
overload::numbers 5.010001
overloading 5.010001
parent 5.010001
perlfaq 5.015001
re 5.00405
sigtrap 5
sort 5.007003
strict 5
subs 5
threads 5.007003
threads::shared 5.007003
unicore::Name 5.015005
utf8 5.006
vars 5.002
version 5.009
version::regex 5.019008
vmsish 5.004
warnings 5.006
warnings::register 5.006
%
0 コメント:
コメントを投稿