X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlfaq8.pod;h=e2cc1faa900130746c937032e9cbc8d964e357e5;hb=6d3b25aa06c9837fbb97c3791369b6d8990787c7;hp=e2ea3e799bc22cea39153f8f1cbd41cf4a7caf60;hpb=e8c8d959315d53d951cc75427f9a58a15d8cf780;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlfaq8.pod b/pod/perlfaq8.pod index e2ea3e7..e2cc1fa 100644 --- a/pod/perlfaq8.pod +++ b/pod/perlfaq8.pod @@ -749,10 +749,10 @@ but leave its STDOUT to come out our old STDERR: while () { } # plus a read To read both a command's STDOUT and its STDERR separately, it's easiest -and safest to redirect them separately to files, and then read from those -files when the program is done: +to redirect them separately to files, and then read from those files +when the program is done: - system("program args 1>/tmp/program.stdout 2>/tmp/program.stderr"); + system("program args 1>program.stdout 2>program.stderr"); Ordering is important in all these examples. That's because the shell processes file descriptor redirections in strictly left to right order. @@ -1063,8 +1063,8 @@ O_NDELAY or O_NONBLOCK flag from the Fcntl module in conjunction with sysopen(): use Fcntl; - sysopen(FH, "/tmp/somefile", O_WRONLY|O_NDELAY|O_CREAT, 0644) - or die "can't open /tmp/somefile: $!": + sysopen(FH, "/foo/somefile", O_WRONLY|O_NDELAY|O_CREAT, 0644) + or die "can't open /foo/somefile: $!": =head2 How do I install a module from CPAN? @@ -1163,7 +1163,7 @@ See Perl's L for more information. use lib "$FindBin::Bin"; use your_own_modules; -=head2 How do I add a directory to my include path at runtime? +=head2 How do I add a directory to my include path (@INC) at runtime? Here are the suggested ways of modifying your include path: