diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-04 16:21:55 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-04 16:21:55 +0000 |
commit | b903fcffa3593f7d54952287ec6b5f0de94b0e94 (patch) | |
tree | e74d6ffe05033efad2e415d2e4632f4dbb786c8e /ext/Socket/Socket.pm | |
parent | c406fbf4b2c59f9bf85533351a960a83d25ff7c2 (diff) | |
download | perl-b903fcffa3593f7d54952287ec6b5f0de94b0e94.tar.gz |
The .pm changes to go with #10428.
p4raw-id: //depot/perl@10431
Diffstat (limited to 'ext/Socket/Socket.pm')
-rw-r--r-- | ext/Socket/Socket.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/Socket/Socket.pm b/ext/Socket/Socket.pm index 344c87dc94..2b2c03eca6 100644 --- a/ext/Socket/Socket.pm +++ b/ext/Socket/Socket.pm @@ -1,7 +1,7 @@ package Socket; our($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS); -$VERSION = "1.72"; +$VERSION = "1.73"; =head1 NAME @@ -329,10 +329,10 @@ sub sockaddr_un { sub AUTOLOAD { my($constname); ($constname = $AUTOLOAD) =~ s/.*:://; - my $val = constant($constname, @_ ? $_[0] : 0); - if ($! != 0) { - my ($pack,$file,$line) = caller; - croak "Your vendor has not defined Socket macro $constname, used"; + croak "&Socket::constant not defined" if $constname eq 'constant'; + my ($error, $val) = constant($constname); + if ($error) { + croak $error; } eval "sub $AUTOLOAD () { $val }"; goto &$AUTOLOAD; |