How long has a module been in Perl core?

2019-02-16 14:26发布

问题:

The module I'm actually interested in is Sys::Hostname, but as a more general question, how can I tell how long a particular module has been a core module? I'm curious about this with regards to the Perl version.

回答1:

Would Module::CoreList help?

From withing Perl:

print Module::CoreList->first_release('Sys::Hostname');

From the command line:

corelist -d Sys::Hostname