summaryrefslogtreecommitdiff
path: root/lib/Sys/Hostname.pm
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-05-14 08:53:41 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-05-14 08:53:41 +0000
commita31035c61afa529d7cc9672cc1f9c46ddd3aae84 (patch)
tree0b2435ad52cb75d90e4403576dca7c1a14ac4202 /lib/Sys/Hostname.pm
parent08da509171d619da30f3475a2668c09746b63931 (diff)
downloadperl-a31035c61afa529d7cc9672cc1f9c46ddd3aae84.tar.gz
Fix VMS test to eliminate void context warning
Diffstat (limited to 'lib/Sys/Hostname.pm')
-rw-r--r--lib/Sys/Hostname.pm2
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