Movatterモバイル変換


[0]ホーム

URL:


 / 
Sys-Info-0.7811
River stage three • 10 direct dependents • 286 total dependents
/Sys::Info

NAME

Sys::Info

VERSION

version 0.7811

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

Extracts and collects information from the host system.

NAME

Sys::Info - Fetch information from the host system

METHODS

new

Constructor.

os

Creates and returns an instance of aSys::Info::OS object. SeeSys::Info::OS for available methods.

device

Creates and returns an instance of the specified device's object. SeeSys::Info::Device for more information.

perl

Returns the perl version in theversion 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 ofperl &perl_build.

httpd

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

CONSTANTS

OSID

Returns the OS identifier.

SEE ALSO

Sys::Info::Base,Sys::Info::OS,Sys::Info::Device,Filesys::Ext2,Filesys::Statvfs,Filesys::TypeFilesys::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 AND LICENSE

This 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.

Module Install Instructions

To install Sys::Info, copy and paste the appropriate command in to your terminal.

cpanm

cpanm Sys::Info

CPAN shell

perl -MCPAN -e shellinstall Sys::Info

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp