Sys::Info::Device(3pm)

Sys::Info::Device3pm

Information about devices

Usage

    use Sys::Info;
    my $info      = Sys::Info->new;
    my $device    = $info->device( $device_id );
    my @available = $info->device('available');

or

    use Sys::Info::Device;
    my $device    = Sys::Info::Device->new( $device_id );
    my @available = Sys::Info::Device->new('available');

Version

version 0.7807

Overview

This is an interface to the available devices such as the "CPU".

Methods

new DEVICE_ID

Returns 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.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12–13

Author

Burak Gursoy <[email protected]>

From libsys-info-base-perl 0.7807-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.