NAME

Sys::Info - Fetch information from the host system

SYNOPSIS

use Sys::Info;
my $info = Sys::Info->new;
printf "Perl version is %s\n", $info->perl;
if(my $httpd = $info->httpd) {
   print "HTTP Server is $httpd\n";
}
my $cpu = $info->cpu;
my $os  = $info->os;
printf "Operating Sytem is %s\n", $os->long_name;
printf "CPU: %s\n", scalar $cpu->identify;

DESCRIPTION

This module collection extracts and collects information from the host system.

METHODS

new

Constructor.

os

Creates and returns an instance of a Sys::Info::OS object. See Sys::Info::OS for available methods.

cpu

Creates and returns an instance of a Sys::Info::CPU object. See Sys::Info::CPU for available methods.

perl

Returns the perl version in the version number format (i.e.: 5.8.8). This is true for legacy perls (i.e.: 5.005_03 will be 5.5.3)

perl_build

Returns the ActivePerl build number if code is used under Windows with ActivePerl. Returns zero otherwise.

perl_long

This method is just a combination of perl & perl_build.

httpd

If the code is used under a HTTP server and this server is recognised, returns the name of this server. Returns undef otherwise.

SEE ALSO

Sys::Info::OS, Sys::Info::CPU, Filesys::Ext2, Filesys::Statvfs, Filesys::Type Filesys::DiskFree, Filesys::DiskSpace, Filesys::DiskUsage, Linux::Distribution, Linux::Distribution::Packages, Probe::MachineInfo, Sys::CPU, Sys::CpuLoad, Sys::Filesystem, Sys::HostIP, Sys::Hostname::FQDN, Sys::Load, Sys::MemInfo, Sys::Uptime, Unix::Processors, Win32::SystemInfo, Win32, Win32API::File, Win32API::Net, Win32::OLE, Win32::TieRegistry .

AUTHOR

Burak Gürsoy, <burak@cpan.org>

COPYRIGHT

Copyright 2006 Burak Gürsoy. 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.8.8 or, at your option, any later version of Perl 5 you may have available.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 187:

Non-ASCII character seen before =encoding in 'Gürsoy,'. Assuming CP1252