perlfunc: fix error in open("-|") description
authorDavid Mitchell <davem@iabyn.com>
Mon, 6 Jun 2011 11:39:08 +0000 (12:39 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 6 Jun 2011 11:39:08 +0000 (12:39 +0100)
both 'to child' and 'from child' were listed as "|-"

pod/perlfunc.pod

index 54f5ae2..e619424 100644 (file)
@@ -3564,7 +3564,7 @@ Use C<defined($pid)> or C<//> to determine whether the open was successful.
 
 For example, use either
 
-    $child_pid = open(FROM_KID, "|-")  // die "can't fork: $!";
+    $child_pid = open(FROM_KID, "-|")  // die "can't fork: $!";
 
 or
     $child_pid = open(TO_KID,   "|-")  // die "can't fork: $!";