projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
276fd46
)
Retract the latter part of #12343.
Jarkko Hietaniemi [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
|
blame
|
history
diff --git
a/ext/IO/lib/IO/Socket/INET.pm
b/ext/IO/lib/IO/Socket/INET.pm
index
7083b99
..
051de53
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] || "")