Hostname: Difference between revisions

Content added Content deleted
(added ruby)
Line 90: Line 90:
<python>import socket
<python>import socket
host = socket.gethostname()</python>
host = socket.gethostname()</python>

=={{header|Ruby}}==
<ruby>require 'socket'
host = Socket.gethostname</ruby>


=={{header|Tcl}}==
=={{header|Tcl}}==