Sys::Info::Base - Base class for Sys::Info
use base qw(Sys::Info::Base); #... sub foo { my $self = shift; my $data = $self->slurp("/foo/bar.txt"); }
This document describes version 0.78 of Sys::Info::Base released on 17 April 2011.
0.78
Sys::Info::Base
17 April 2011
Includes some common methods.
Loads the module named with CLASS.
CLASS
Loads the specified class via TEMPLATE:
TEMPLATE
my $class = __PACKAGE__->load_subclass('Sys::Info::Driver::%s::OS');
%s will be replaced with OSID. Apart from the template usage, it is the same as load_module.
%s
OSID
load_module
Returns the trimmed version of STRING.
STRING
Caches all contents of FILE into a scalar and then returns it.
FILE
Caches all contents of FILE into an array and then returns it.
Converts DATE_STRING into unix timestamp.
DATE_STRING
Returns a hashref built from POSIX::uname.
POSIX::uname
Sys::Info.
Burak Gursoy <burak@cpan.org>.
Copyright 2006 - 2011 Burak Gursoy. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available.
To install Sys::Info::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Info::Base
CPAN shell
perl -MCPAN -e shell install Sys::Info::Base
For more information on module installation, please visit the detailed CPAN module installation guide.