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
π 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.
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
- ubuntu resolute: libsys-info-base-perl 0.7810-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsys-info-base-perl 0.7810-1 Β· 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