summaryrefslogtreecommitdiff
path: root/ext/Sys
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2002-09-03 10:21:57 -0700
committerhv <hv@crypt.org>2002-09-04 13:55:20 +0000
commit6286f723a70d9d63bf59e611a2946140879179c3 (patch)
treee9d10d6a634f1136bfcadcde6fe4be66e8a2d322 /ext/Sys
parent557c0de77f34a6b3bb86c0e3be82c255a426eb96 (diff)
downloadperl-6286f723a70d9d63bf59e611a2946140879179c3.tar.gz
File::Basename doesn't lazy load Carp right.
and Subject: [PATCH] More modules that don't lazy load Carp right. Message-ID: <20020904002157.GD2701@ool-18b93024.dyn.optonline.net> and Message-ID: <20020904003857.GE2701@ool-18b93024.dyn.optonline.net> p4raw-id: //depot/perl@17840
Diffstat (limited to 'ext/Sys')
-rw-r--r--ext/Sys/Hostname/Hostname.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Sys/Hostname/Hostname.pm b/ext/Sys/Hostname/Hostname.pm
index 1efc897c3b..29825b95b0 100644
--- a/ext/Sys/Hostname/Hostname.pm
+++ b/ext/Sys/Hostname/Hostname.pm
@@ -47,7 +47,7 @@ sub hostname {
# rats!
$host = '';
- Carp::croak "Cannot get host name of local machine";
+ croak "Cannot get host name of local machine";
}
elsif ($^O eq 'MSWin32') {
@@ -110,7 +110,7 @@ sub hostname {
}
# bummer
- || Carp::croak "Cannot get host name of local machine";
+ || croak "Cannot get host name of local machine";
# remove garbage
$host =~ tr/\0\r\n//d;