From 5b86764755714d48fb430f823a59de6def7507ff Mon Sep 17 00:00:00 2001 From: brian d foy Date: Thu, 4 Nov 2010 12:59:50 -0500 Subject: [PATCH] RT 78814 perlfunc/open(): four items are not a triple Reported by Niko Tyni Commit b76cc8ba45957 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 --- pod/perlfunc.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 7311d8b..6a498bc 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -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]'"); @@ -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 (in other words, if your platform is Unix) you can use the list form. -- 2.7.4