Hostname: Difference between revisions

Content added Content deleted
(Add Factor example)
m (Changed over to works with template)
Line 4:
 
=={{header|C}}==
'''Compiler:'''{{works [[with|gcc]] |4.0.1}}
{{works with|POSIX|.1}}
 
'''Standard:''' [[POSIX.1]]
 
#include <limits.h>
#include <unistd.h>
Line 31 ⟶ 29:
 
=={{header|Perl}}==
{{works with|Perl|5.8.6}}
'''Interpreter:''' [[perl]] 5.8.6
use Sys::Hostname;
Line 40 ⟶ 38:
 
=={{header|Python}}==
'''Interpreter:'''{{works [[with|Python]] |2.5}}
 
import socket
host = socket.gethostname()