1Sys::Info::Device(3) User Contributed Perl Documentation Sys::Info::Device(3)
2
3
4
6 Sys::Info::Device
7
9 version 0.7807
10
12 use Sys::Info;
13 my $info = Sys::Info->new;
14 my $device = $info->device( $device_id );
15 my @available = $info->device('available');
16
17 or
18
19 use Sys::Info::Device;
20 my $device = Sys::Info::Device->new( $device_id );
21 my @available = Sys::Info::Device->new('available');
22
24 This is an interface to the available devices such as the "CPU".
25
27 Sys::Info::Device - Information about devices
28
30 new DEVICE_ID
31 Returns an object to the related device or dies if "DEVICE_ID" is bogus
32 or false.
33
34 If "DEVICE_ID" has the value of "available", then the names of the
35 available devices will be returned.
36
38 Sys::Info::Device::CPU, Sys::Info.
39
41 Burak Gursoy <burak@cpan.org>
42
44 This software is copyright (c) 2006 by Burak Gursoy.
45
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48
49
50
51perl v5.32.1 2021-01-27 Sys::Info::Device(3)