```{index} single: Sys::Hostname; Perl module ``` # Sys::Hostname ```{pperl-module-badges} Sys::Hostname ``` Return the local machine's hostname, cached after the first lookup. Calls libc::gethostname into a stack buffer, returns result as a PV SV. Mirrors `Sys::Hostname` XS. ## Functions ### Other Functions #### `ghname` `ghname()` — raw gethostname wrapper. #### `hostname` `hostname()` — cached hostname wrapper.