1Sys::Info::Base(3)    User Contributed Perl Documentation   Sys::Info::Base(3)
2
3
4

NAME

6       Sys::Info::Base - Base class for Sys::Info
7

SYNOPSIS

9           use base qw(Sys::Info::Base);
10           #...
11           sub foo {
12               my $self = shift;
13               my $data = $self->slurp("/foo/bar.txt");
14           }
15

DESCRIPTION

17       This document describes version 0.7804 of "Sys::Info::Base" released on
18       "21 January 2015".
19
20       Includes some common methods.
21

METHODS

23   load_module CLASS
24       Loads the module named with "CLASS".
25
26   load_subclass TEMPLATE
27       Loads the specified class via "TEMPLATE":
28
29           my $class = __PACKAGE__->load_subclass('Sys::Info::Driver::%s::OS');
30
31       %s will be replaced with "OSID". Apart from the template usage, it is
32       the same as "load_module".
33
34   trim STRING
35       Returns the trimmed version of "STRING".
36
37   slurp FILE
38       Caches all contents of "FILE" into a scalar and then returns it.
39
40   read_file FILE
41       Caches all contents of "FILE" into an array and then returns it.
42
43   date2time DATE_STRING
44       Converts "DATE_STRING" into unix timestamp.
45
46   uname
47       Returns a hashref built from "POSIX::uname".
48

SEE ALSO

50       Sys::Info.
51

AUTHOR

53       Burak Gursoy <burak@cpan.org>.
54
56       Copyright 2006 - 2015 Burak Gursoy. All rights reserved.
57

LICENSE

59       This library is free software; you can redistribute it and/or modify it
60       under the same terms as Perl itself, either Perl version 5.16.2 or, at
61       your option, any later version of Perl 5 you may have available.
62
63
64
65perl v5.28.0                      2018-07-15                Sys::Info::Base(3)
Impressum