summaryrefslogtreecommitdiff
path: root/lib/Net/t/hostname.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/t/hostname.t')
-rw-r--r--lib/Net/t/hostname.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Net/t/hostname.t b/lib/Net/t/hostname.t
index 7e94b23234..e085591754 100644
--- a/lib/Net/t/hostname.t
+++ b/lib/Net/t/hostname.t
@@ -32,11 +32,11 @@ else {
print "not ok 1\n";
}
-# This checks that hostname does not overwrite $_
+# This check thats hostanme does not overwrite $_
my @domain = qw(foo.example.com bar.example.jp);
my @copy = @domain;
-my @dummy = grep { hostname && $_ } @domain;
+my @dummy = grep { hostname eq $_ } @domain;
($domain[0] && $domain[0] eq $copy[0])
? print "ok 2\n"