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 (3)

.ds Aq ’

NAME

Sys::Info - Fetch information from the host system

CONTENTS

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->device(CPU);
    my $os  = $info->os;
    printf "Operating System is %s\n", $os->name( long => 1 );
    printf "CPU: %s\n", scalar $cpu->identify;



DESCRIPTION

This document describes version 0.78 of Sys::Info released on 17 April 2011.

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.

    device

Creates and returns an instance of the specified device’s object. See Sys::Info::Device for more information.

    perl

Returns the perl version in the version number format (i.e.: 5.8.8). This is also 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.

CONSTANTS

    OSID

Returns the OS identifier.

SEE ALSO

Sys::Info::Base, Sys::Info::OS, Sys::Info::Device, 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 Gursoy <burak@cpan.org>.

COPYRIGHT

Copyright 2006 - 2011 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.12.3 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 (3) 2011-04-17

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