System::Info - Basic information about the system
$ perl sysinfo.pl
use System::Info; my $si = System::Info->new; printf "Hostname: %s\n", $si->host; printf "Number of CPU's: %s\n", $si->ncpu; printf "Processor type: %s\n", $si->cpu_type; # short printf "Processor description: %s\n", $si->cpu; # long printf "OS and version: %s\n", $si->os;
The standard install procedure applies:
$ perl Makefile.PL $ make test $ make install
If you like to test non-released active development, fetch like
$ git clone https://github.com/Tux/System-Info System-Info or get it as a tgz: $ wget --output-document=System-Info-git.tgz \ https://github.com/Tux/System-Info/archive/master.tar.gz
Copyright (C) 2016 - 2020
* H.Merijn Brand * Abe Timmerman
This suite is free software; you can redistribute it and/or modify it under the same terms as Perl itself, without consulting the author.
(Future) Co-Authors and or contributors should agree to this before submitting patches.
See:
http://www.perl.com/perl/misc/Artistic.html
http://www.gnu.org/copyleft/gpl.html
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This module is maintained by Abe Timmerman <abeltje@cpan.org> and H.Merijn Brand <hmbrand@cpan.org>.
As always, have the appropriate amount of fun!
System
VMS?
To install System::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm System::Info
CPAN shell
perl -MCPAN -e shell install System::Info
For more information on module installation, please visit the detailed CPAN module installation guide.