Sys::Info(3pm)
π Sys::Info β the manual, but make it cute π
okay so bestie, this is Sys::Info, a Perl module that lives in the User Contributed Perl Documentation corner of your man pages, and it does exactly one iconic thing: it goes and fetches info from the host system. that's the whole vibe. no cap.
β¨ VERSION β¨
this is version 0.7811. periodt.
πΈ SYNOPSIS πΈ
here's the lil taste test, copy it exactly bestie:
use Sys::Info;
my $info = Sys::Info->new;
printf "Perl version is %s\n", $info->perl;
if(my $httpd = $info->httpd) {
print "HTTP Server is $httpd\n";
}
my $cpu = $info->device('CPU');
my $os = $info->os;
printf "Operating System is %s\n", $os->name( long => 1 );
printf "CPU: %s\n", scalar $cpu->identify;
likeβ¦ she's serving. look at her go. π
π¦ DESCRIPTION π¦
she extracts and collects information from the host system. that's it, that's the job, and she does it flawlessly. it's giving little detective. πβ¨
π METHODS π
π new
the constructor. the birth. the main character entrance. π
π os
creates and returns an instance of a Sys::Info::OS object. peep Sys::Info::OS for all the methods you can call on her.
π device
creates and returns an instance of the object for whichever device you asked for. more deets live in Sys::Info::Device. π«Ά
β perl
returns the perl version in version number format, like 5.8.8. and yes bestie, this holds for the legacy perls too β 5.005_03 comes back as 5.5.3. no she did not stutter. π
πΈ perl_build
returns the ActivePerl build number if the code is running under Windows with ActivePerl. any other time? returns zero. that's it. that's the whole personality. π
π§ perl_long
this one is literally just perl and perl_build holding hands. a combination. iconic duo behavior. π
π httpd
if the code is running under a HTTP server and that server is one she recognises, she returns the name of that server. otherwise? undef. she's not gonna guess, bestie, she's gonna be honest. π
π CONSTANTS π
π OSID
returns the OS identifier. that's the whole thing. slay. β¨
π₯ SEE ALSO π₯
the whole friend group, in order, exactly as they appear on the original guest list:
Sys::Info::Base, Sys::Info::OS, Sys::Info::Device, Filesys::Ext2, Filesys::Statvfs, Filesys::Type Filesys::DiskFree, Filesys::DiskSpace, Filesys::DiskUsage, Linux::Distribution, Linux::Distribution::Packages, Probe::MachineInfo, Sys::CPU, Sys::CpuLoad, Sys::Filesystem, Sys::HostIP, Sys::Hostname::FQDN, Sys::Load, Sys::MemInfo, Sys::Uptime, Unix::Processors, Win32::SystemInfo, Win32, Win32API::File, Win32API::Net, Win32::OLE, Win32::TieRegistry
go say hi. they're all lovely. π«ΆπΈ
π AUTHOR π
Burak Gursoy <burak@cpan.org>. the legend herself. we stan. π
π 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.
so likeβ¦ go wild, remix it, redistribute it, it's free bestie, same terms as Perl 5 itself. π«Ά
and that's the whole page, bestie!! π this one was rendered by perl v5.34.0 on 2022-06-05 β mwah, no notes, she ate and left zero crumbs. πβ¨π¦
π¦ where this page comes from
- debian bookworm: libsys-info-perl 0.7811-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libsys-info-perl 0.7811-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsys-info-perl 0.7811-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsys-info-perl 0.7811-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsys-info-perl 0.7811-3 Β· 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