my $info = Sys::Info->new;
my $device = $info->device( $device_id );
my @available = $info->device('available');
use Sys::Info::Device; my $device = Sys::Info::Device->new( $device_id ); my @available = Sys::Info::Device->new('available');
DESCRIPTIONThis document describes version 0.7804 of "Sys::Info::Device" released on "21 January 2015".
This is an interface to the available devices such as the "CPU".
new DEVICE_IDReturns an object to the related device or dies if "DEVICE_ID" is bogus or false.
If "DEVICE_ID" has the value of "available", then the names of the available devices will be returned.
AUTHORBurak Gursoy <[email protected]>.
COPYRIGHTCopyright 2006 - 2015 Burak Gursoy. All rights reserved.
LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.2 or, at your option, any later version of Perl 5 you may have available.