Thorium::SystemInfo - Query system information
version 0.510
use Thorium::SystemInfo; my $sysinfo = Thorium::SystemInfo->new; print 'eth0 IP is ', $sysinfo->eth0_ipv4;
A class for querying information about the system. Primarily useful in Thorium::BuildConf fixups.
eth0_ipv4 (rw, Str)
rw
Str
eth0 IPv4 address.
ethernet_interfaces (rw, HashRef)
HashRef
HashRef where the key is the ethernet device name and the value is the IPv4 address.
hostname (ro, Str)
ro
Hostname.
os (ro, Sys::Info::OS)
Returns a Sys::Info::OS object.
Adam Flott <adam@npjh.com>
This software is copyright (c) 2011 by Adam Flott <adam@npjh.com>, CIDC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Thorium, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thorium
CPAN shell
perl -MCPAN -e shell install Thorium
For more information on module installation, please visit the detailed CPAN module installation guide.