Sys::Info::Base(3pm)

πŸ’– Sys::Info::Base πŸ’–

okay so bestie, welcome to the manual page for Sys::Info::Base (that's Sys::Info::Base(3pm) if we're being formal, which we are, it's a manpage) from the User Contributed Perl Documentation. it's a whole mood. let's get into it. πŸ¦‹


✨ NAME ✨

Sys::Info::Base


🌸 VERSION 🌸

version 0.7810 β€” yes she's serving vintage, she's been around, she ate. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

like, here's the vibe:

use parent qw(Sys::Info::Base);
#...
sub foo {
    my $self = shift;
    my $data = $self->slurp("/foo/bar.txt");
}

see how easy that was?? subclass it, call slurp, move on with your day. main character behavior fr fr. ✨


πŸ’œ DESCRIPTION πŸ’œ

she includes some common methods. that's it, that's the description. lowkey iconic for being so brief about it. πŸ‘‘


🫢 NAME 🫢

Sys::Info::Base β€” Base class for Sys::Info

(yes the manpage has NAME twice, bestie. we don't question the ancestors' choices, we simply honor them. πŸ’–)


🌈 METHODS 🌈

⭐ load_module CLASS

Loads the module named with CLASS. that's the whole thing. go load it. 🧚

πŸ’œ load_subclass TEMPLATE

Loads the specified class via TEMPLATE, like so:

my $class = __PACKAGE__->load_subclass('Sys::Info::Driver::%s::OS');

%s will be replaced with OSID. and apart from the template usage part, it is literally the same as load_module. no cap. πŸ”₯

🌸 trim STRING

Returns the trimmed version of STRING. leading whitespace? gone. trailing whitespace? also gone. she's tidy. πŸŽ€

πŸ’… slurp FILE

Caches all contents of FILE into a scalar and then returns it. all of it. in one scalar. obsessed. πŸ’–

πŸ¦‹ read_file FILE

Caches all contents of FILE into an array and then returns it. same energy as slurp but make it list-y. 🌈

🌟 date2time DATE_STRING

Converts DATE_STRING into a unix timestamp. time is fake but timestamps are forever. ⏰✨

πŸ’€ uname

Returns a hashref built from POSIX::uname. that's the entire method description, she's efficient, she knows what she is. 😭


✨ SEE ALSO ✨

  • Sys::Info. β€” go look, iykyk. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Burak Gursoy


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.

shoutout to free software fr fr, you can remix, redistribute, do your little thing, just keep the same terms as Perl 5 itself. respect the og. πŸ™

and that's the whole page bestie!! πŸŽ€ this was brought to you by perl v5.40.1, dated 2025-10-07, and yes that's the manual for Sys::Info::Base(3pm) β€” stan. πŸ’…βœ¨πŸŒΈπŸ¦‹πŸ’œ

πŸ“¦ where this page comes from