Hostname: Difference between revisions

m (Moved to Enviro and Net cats)
Line 48:
 
String hostname = java.net.InetAddress.getLocalHost().getHostName();
 
=={{header|OCaml}}==
<ocaml>Unix.gethostname()</ocaml>
 
=={{header|Perl}}==