Unix::Processors::Info - Interface to processor (CPU) information
use Unix::Processors; ... $aproc = $proc->processors[0]; print ($aproc->id, $aproc->state, $aproc->clock); }
This package provides access to per-processor (CPU) information from the operating system in a OS independent manner.
Return the cpu number of this processor.
Return the clock frequency in MHz.
Return the cpu state as "online", "offline", or "poweroff".
Return the cpu type.
The latest version is available from CPAN and from http://www.veripool.org/.
Copyright 1999-2014 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.
Wilson Snyder <wsnyder@wsnyder.org>
Unix::Processors
To install Unix::Processors, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Unix::Processors
CPAN shell
perl -MCPAN -e shell install Unix::Processors
For more information on module installation, please visit the detailed CPAN module installation guide.