projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276fd46
)
Retract the latter part of #12343.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 6 Oct 2001 00:30:23 +0000
(
00:30
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 6 Oct 2001 00:30:23 +0000
(
00:30
+0000)
p4raw-id: //depot/perl@12344
ext/IO/lib/IO/Socket/INET.pm
patch
|
blob
|
history
diff --git
a/ext/IO/lib/IO/Socket/INET.pm
b/ext/IO/lib/IO/Socket/INET.pm
index 7083b99fc579db87101f42c2c7e9fe8410965406..051de539cf7f6155356b7678efc95cb1cd8272b1 100644
(file)
--- a/
ext/IO/lib/IO/Socket/INET.pm
+++ b/
ext/IO/lib/IO/Socket/INET.pm
@@
-52,8
+52,7
@@
sub _sock_info {
}
if(defined $port) {
-
- my $defport = ($port =~ s,\((\d+)\)$,,)[0];
+ my $defport = ($port =~ s,\((\d+)\)$,,) ? $1 : undef;
my $pnum = ($port =~ m,^(\d+)$,)[0];
@serv = getservbyname($port, $proto[0] || "")