GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SYS::INFO::BASE (3)

.ds Aq ’

NAME

Sys::Info::Base - Base class for Sys::Info

CONTENTS

SYNOPSIS



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



DESCRIPTION

This document describes version 0.7804 of Sys::Info::Base released on 21 January 2015.

Includes some common methods.

METHODS

    load_module CLASS

Loads the module named with CLASS.

    load_subclass TEMPLATE

Loads the specified class via 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.

    trim STRING

Returns the trimmed version of STRING.

    slurp FILE

Caches all contents of FILE into a scalar and then returns it.

    read_file FILE

Caches all contents of FILE into an array and then returns it.

    date2time DATE_STRING

Converts DATE_STRING into unix timestamp.

    uname

Returns a hashref built from POSIX::uname.

SEE ALSO

Sys::Info.

AUTHOR

Burak Gursoy <burak@cpan.org>.

COPYRIGHT

Copyright 2006 - 2015 Burak Gursoy. All rights reserved.

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.16.2 or, at your option, any later version of Perl 5 you may have available.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SYS::INFO::BASE (3) 2015-01-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.