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.
Perl interpreter (which runs your perl program) will use a special array called @INC to search for a file containing the module. Each value in the @INC array is a directory name (but see note below); Perl will search within those directories in a loop using the rules specified below.
The perl1 compiler (yes, there is a compiler although it's interpreted language) loads files, compiles them, then switches to run time to run the compiled code. When it encounters a new file to load, it switches back to compile time, compiles the new code, and so on. To load a module at compile time, you use it.
Check installed perl modules via terminal Available commands are: l - List all installed modules m <module> - Select a module q - Quit the program cmd? Then type l to list all the installed modules, you can also use command m <module> to select the module and get its information. After finish, just type q to quit.
Would Module::CoreList help?
From withing Perl:
print Module::CoreList->first_release('Sys::Hostname');
From the command line:
corelist -d Sys::Hostname
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With