diff options
Diffstat (limited to 'lib/Sys/Hostname.pm')
-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 2c40361b51..d527e4525f 100644 --- a/lib/Sys/Hostname.pm +++ b/lib/Sys/Hostname.pm @@ -39,7 +39,7 @@ sub hostname { if ($^O eq 'VMS') { # method 2 - no sockets ==> return DECnet node name - eval {gethostbyname('me')}; + eval {my($test) = 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 |