10

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.

Joel
  • 3,435
  • 2
  • 23
  • 33
  • 'bout all I can think of is to troll through Perl release histories and see if/when it showed up in a particular version. The CPAN page for the module doesn't have a history, since it's a core module - its history is Perl's own history. – Marc B Aug 31 '11 at 15:24
  • Related: http://stackoverflow.com/q/571654 http://stackoverflow.com/q/2500892 http://stackoverflow.com/q/2049735 http://stackoverflow.com/q/2967895 – daxim Aug 31 '11 at 17:57
  • Oh no another Joel in the Perl section here. Hmmm rock paper scissors for it? Nah I have been meaning to add my last name now that I have been authoring some Perl modules, want to get my name out. – Joel Berger Sep 01 '11 at 00:02
  • @Joel Berger Would it shock you if my last name was Berger too? Well, it would shock me since that's not my last name :-D – Joel Sep 01 '11 at 03:24

1 Answers1

21

Would Module::CoreList help?

From withing Perl:

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

From the command line:

corelist -d Sys::Hostname
ikegami
  • 367,544
  • 15
  • 269
  • 518
zoul
  • 102,279
  • 44
  • 260
  • 354
  • It prints `5`. Yay. I don't know if this is what the asker wants but I learned about a new interesting module. – musiKk Aug 31 '11 at 15:28
  • 6
    Note that it comes with a `corelist` command-line interface that gives you a bit nicer output. – phaylon Aug 31 '11 at 15:34
  • 2
    +1: Love this site. You learn something new everyday. I've always gone through perldoc.perl.org and just keep setting back the "Version" drop down to see when the module appears in that webpage. This is way better. – David W. Aug 31 '11 at 16:10