Perl Basics
Introduction to Perl
FAQ's
CGI
Regular Expressions

PC Overview
Cool Stuff
My Modules
Success Stories
Links
Perl in the News
Logos
Perl @ msn
Perl Chat

PC Internals
About
Contact
Guest Book
Handy Logos
What's new

System Infos in Perl

See also
P-friendly

[ home ] - [ search ] - [ sitemap ]

up

Sys::HostIP - Try really hard to get IP addr.

Sys::Hostname - Try every conceivable way to get hostname

use Sys::HostIP;
$ipaddr= hostip; # get (text) dotted-decimal ip

print "$ipaddr\n";


use Sys::Hostname;
$host = hostname;

print "$host\n";
home - feedback - search - web jobs
© 1998-2004 retoh :)