Skip to content

Commit

Permalink
RT 78814 perlfunc/open(): four items are not a triple
Browse files Browse the repository at this point in the history
Reported by Niko Tyni

Commit b76cc8b made each group a quadruple without
updating the name. Take out the name altogether to avoid
this in the future.

Also update the reference to "list form" pipes to include
both the old last example and the new one.

Originally noticed by Reuben Thomas in http://bugs.debian.org/469402
  • Loading branch information
briandfoy committed Nov 4, 2010
1 parent ffc7a57 commit 5b86764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pod/perlfunc.pod
Original file line number Diff line number Diff line change
Expand Up @@ -3484,7 +3484,7 @@ piped open when you want to exercise more control over just how the
pipe command gets executed, such as when running setuid and
you don't want to have to scan shell commands for metacharacters.

The following triples are more or less equivalent:
The following blocks are more or less equivalent:

open(FOO, "|tr '[a-z]' '[A-Z]'");
open(FOO, '|-', "tr '[a-z]' '[A-Z]'");
Expand All @@ -3496,7 +3496,7 @@ The following triples are more or less equivalent:
open(FOO, '-|') || exec 'cat', '-n', $file;
open(FOO, '-|', "cat", '-n', $file);

The last example in each block shows the pipe as "list form", which is
The last two examples in each block shows the pipe as "list form", which is
not yet supported on all platforms. A good rule of thumb is that if
your platform has true C<fork()> (in other words, if your platform is
Unix) you can use the list form.
Expand Down

0 comments on commit 5b86764

Please sign in to comment.