This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add new perldelta for 5.21.1
[perl5.git] / pod / perlipc.pod
index decb59b..0e00d18 100644 (file)
@@ -1005,7 +1005,7 @@ go back to service a new client.
     sub logmsg { print "$0 $$: @_ at ", scalar localtime(), "\n" }
 
     my $port  = shift || 2345;
-    die "invalid port" unless if $port =~ /^ \d+ $/x;
+    die "invalid port" unless $port =~ /^ \d+ $/x;
 
     my $proto = getprotobyname("tcp");