![]() |
![]()
| ![]() |
![]()
NAMESys::Info::Base VERSIONversion 0.7807 SYNOPSISuse base qw(Sys::Info::Base); #... sub foo { my $self = shift; my $data = $self->slurp("/foo/bar.txt"); } DESCRIPTIONIncludes some common methods. NAMESys::Info::Base - Base class for Sys::Info METHODSload_module CLASSLoads the module named with "CLASS". load_subclass TEMPLATELoads 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 STRINGReturns the trimmed version of "STRING". slurp FILECaches all contents of "FILE" into a scalar and then returns it. read_file FILECaches all contents of "FILE" into an array and then returns it. date2time DATE_STRINGConverts "DATE_STRING" into unix timestamp. unameReturns a hashref built from "POSIX::uname". SEE ALSOSys::Info. AUTHORBurak Gursoy <burak@cpan.org> COPYRIGHT AND LICENSEThis 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.
|