Sys::Hostname::LongSys::Hostname::Long is a Perl module to try every conceivable way to get full hostname. | |
Download |
Sys::Hostname::Long Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Scott Penrose
- Publisher web site:
- http://search.cpan.org/~scott/Template-Provider-MD5-0.01/lib/Template/Provider/MD5.pm
Sys::Hostname::Long Tags
Sys::Hostname::Long Description
Sys::Hostname::Long is a Perl module to try every conceivable way to get full hostname. Sys::Hostname::Long is a Perl module to try every conceivable way to get full hostname.SYNOPSIS use Sys::Hostname::Long; $host_long = hostname_long;How to get the host full name in perl on multiple operating systems (mac, windows, unix* etc)DISCUSSIONThis is the SECOND release of this code. It has an improved set of tests and improved interfaces - but it is still often failing to get a full host name. This of course is the reason I wrote the module, it is difficult to get full host names accurately on each system. On some systems (eg: Linux) it is dependent on the order of the entries in /etc/hosts.To make it easier to test I have testall.pl to generate an output list of all methods. Thus even if the logic is incorrect, it may be possible to get the full name.Attempt via many methods to get the systems full name. The Sys::Hostname class is the best and standard way to get the system hostname. However it is missing the long hostname. Requirements: · Perl
Sys::Hostname::Long Related Software