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