Get system host name. : hostname « Network « Perl






Get system host name.

    

#!/usr/bin/perl -w

use Sys::Hostname;

$host = hostname();

print "Network host name is: $host\n";

   
    
    
    
  








Related examples in the same category