Processors::Info(3pm)
β¨ NAME β¨
Unix::Processors::Info β bestie, it's your all-access pass to processor (CPU) info π
(also this whole thing lives in the User Contributed Perl Documentation, section 3pm, iykyk)
πΈ SYNOPSIS πΈ
use Unix::Processors;
...
$aproc = $proc->processors[0];
print ($aproc->id, $aproc->state, $aproc->clock);
}
yes, that's literally it. grab Unix::Processors, snag a processor off the array, and vibe check its id, state and clock. iconic.
π¦ DESCRIPTION π¦
okay so here's the tea β β this package hands you the per-processor (CPU) info straight from your operating system, and it does it in an OS independent way. no cap. whatever OS you're on, you get your CPU deets the same way, no drama, no platform-specific chaos. main character energy fr fr.
idβ returns the cpu number of this processor. that's its little name tag πclockβ returns the clock frequency, in MHz. how fast is she going πβοΈstateβ returns the cpu state, and it'll be one of"online","offline", or"poweroff". that's the vibe check on whether your CPU is awake or napping πtypeβ returns the cpu type. the whole personality, basically.
π DISTRIBUTION π
you want the freshest version? it's on CPAN, and also over at <http://www.veripool.org/> π
Copyright 1999-2017 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0. so like, slay, it's free β pick whichever license speaks to you π«Ά
π AUTHORS π
Wilson Snyder <wsnyder@wsnyder.org>
π§ SEE ALSO π§
Unix::Processors
and that's a wrap, babe! πΈ this lil page came to you courtesy of perl v5.42.3, dated 2026-08-19, living under the name Processors::Info(3pm). go forth and read them CPU stats, bestie, no cap πβ¨
π¦ where this page comes from
- ubuntu stonking: libunix-processors-perl 2.046-3build6 Β· Artistic-2.0 OR LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms