diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sys/Hostname.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sys/Hostname.pm b/lib/Sys/Hostname.pm index 360d0eb910..cbfd943591 100644 --- a/lib/Sys/Hostname.pm +++ b/lib/Sys/Hostname.pm @@ -40,7 +40,7 @@ sub hostname { # method 2 - no sockets ==> return DECnet node name eval {local $SIG{'__DIE__'}; - my($test) = gethostbyname('me')}; # returns 'me' on most systems + ($host) = gethostbyname('me')}; # returns 'me' on most systems if ($@) { return $host = $ENV{'SYS$NODE'}; } # method 3 - has someone else done the job already? It's common for the |