Rex::C...entory(3pm)

πŸŽ€ Rex::Commands::Inventory β€” aka Rex::C...entory(3pm) πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation and it's literally all about getting a peek at what's actually living on your machines. no cap.

✨ NAME ✨

Rex::Commands::Inventory β€” get an inventory of your systems πŸ¦‹


πŸ’… DESCRIPTION πŸ’…

With this module you can get an inventory of your system. it's giving "tell me everything you own" energy and honestly? obsessed. πŸ‘‘

okay and here's the important part, so listen up:

  • all these functions will not be reported πŸ“‹
  • these functions don't modify anything πŸ™…β€β™€οΈ

so like, they're safe. they're read-only. they're the friend who just looks and doesn't touch. 🫢


🌸 SYNOPSIS 🌸

use Data::Dumper;
task "inventory", "remoteserver", sub {
  my $inventory = inventory();
  print Dumper($inventory);
};

⭐ EXPORTED FUNCTIONS ⭐

πŸ’œ inventory

This function returns a hashRef of all gathered hardware. use the Data::Dumper module to see its structure β€” like, it's the magnifying glass for the vibe check πŸ”βœ¨

task "get_inventory", sub {
  my $inventory = inventory();
  print Dumper($inventory);
};

🌈 heads up bestie: the structure is a hashRef, so if you just print it raw you're gonna get something unhinged. Data::Dumper is your bestie here. periodt.

and that's the whole page!! short and slay ✨

written for perl v5.40.1 and dated 2025-10-03 β€” mwah, love u, go inventory your servers πŸ’–πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from