---
name: "Sys::Info::Device"
section: "3pm"
platform: "linux"
package: "libsys-info-base-perl"
version: "0.7807-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Sys::Info::Device"
---

# Sys::Info::Device(3pm)

Information about devices

## NAME

Sys::Info::Device

## VERSION

version 0.7807

## SYNOPSIS

```
    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');
```

## DESCRIPTION

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

## NAME

Sys::Info::Device - Information about devices

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

## SEE ALSO

Sys::Info::Device::CPU, Sys::Info.

## AUTHOR

Burak Gursoy \<burak@cpan.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2006 by Burak Gursoy.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
