Sys::I...:Device(3pm)
π Sys::Info::Device π
okay bestie, listen β this page comes from the User Contributed Perl Documentation corner of the manual, and it's literally a whole guide to asking your computer "hey, what devices do you have?" no cap. it's Sys::I...:Device on the shelf, and it's giving very useful actually. let's go π¦
πΈ NAME πΈ
Sys::Info::Device β it's an interface to the devices your machine has hanging around. bestie behavior only.
β¨ VERSION β¨
version 0.7810 β yes, that's the number, don't @ me π
π SYNOPSIS π
so like, here's how you actually use it. option one, going through the big boss Sys::Info:
use Sys::Info;
my $info = Sys::Info->new;
my $device = $info->device( $device_id );
my @available = $info->device('available');
or, if you wanna skip straight to the device module itself (or energy, we love options):
use Sys::Info::Device;
my $device = Sys::Info::Device->new( $device_id );
my @available = Sys::Info::Device->new('available');
slay, you're basically a sysadmin now π
π DESCRIPTION π
This is an interface to the available devices such as the "CPU". that's it, that's the plot. it's the doorway, the vibe check, the little gateway module that lets you peek at your hardware. iconic.
π NAME π
Sys::Info::Device - Information about devices β¨
(yes bestie, the page really does this NAME thing twice β that's just how the manpage came out of the oven, we don't question it, we respect it π«Ά)
π METHODS π
π new DEVICE_ID
Returns an object to the related device β or dies if "DEVICE_ID" is bogus or false. like, it will literally not survive that. so don't hand it nonsense, okay? π
If "DEVICE_ID" has the value of "available", then the names of the available devices will be returned. so it's either "give me this device" or "give me the whole roster", and honestly? both valid queen moves π
π¦ SEE ALSO π¦
Sys::Info::Device::CPUβ the CPU-specific bestieSys::Infoβ the parent icon
π AUTHOR π
Burak Gursoy π
π 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. that's the good stuff fr fr π«Ά
and that's the whole page bestie!! perl v5.40.1, dated 2025-10-07 β go forth and interrogate your devices, you've got this π β¨πΈ
π¦ where this page comes from
- ubuntu resolute: libsys-info-base-perl 0.7810-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsys-info-base-perl 0.7810-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms