X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlopentut.pod;h=cc9cf63ff2ed20038fe295889fcb1830a0b8ff52;hb=bed171dfce7f6c0bdb7207be32c058f4d36fc432;hp=dbb3a0bd83cd0c1613945b2f1430b7cb6b89bb79;hpb=f5daac4a641c782ba897f4a064c1a6f1035697b0;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlopentut.pod b/pod/perlopentut.pod index dbb3a0b..cc9cf63 100644 --- a/pod/perlopentut.pod +++ b/pod/perlopentut.pod @@ -123,9 +123,9 @@ special way. If you open minus for reading, it really means to access the standard input. If you open minus for writing, it really means to access the standard output. -If minus can be used as the default input or default output? What happens +If minus can be used as the default input or default output, what happens if you open a pipe into or out of minus? What's the default command it -would run? The same script as you're current running! This is actually +would run? The same script as you're currently running! This is actually a stealth C hidden inside an C call. See L for details. @@ -303,11 +303,13 @@ from the Fcntl module, which supplies the following standard flags: O_TRUNC Truncate the file O_NONBLOCK Non-blocking access -Less common flags that are sometimes available on some operating systems -include C, C, C, C, C, -C, C, C, C, C, C -and C. Consult your open(2) manpage or its local equivalent -for details. +Less common flags that are sometimes available on some operating +systems include C, C, C, C, +C, C, C, C, C, +C, C and C. Consult your open(2) +manpage or its local equivalent for details. (Note: starting from +Perl release 5.6 the O_LARGEFILE flag, if available, is automatically +added to the sysopen() flags because large files are the the default.) Here's how to use C to emulate the simple C calls we had before. We'll omit the C<|| die $!> checks for clarity, but make sure @@ -494,7 +496,7 @@ to mean standard input, per the standard convention. You've probably noticed how Perl's C and C functions can produce messages like: - Some warning at scriptname line 29, chunk 7. + Some warning at scriptname line 29, line 7. That's because you opened a filehandle FH, and had read in seven records from it. But what was the name of the file, not the handle? @@ -510,7 +512,7 @@ temporarily, then all you have to do is this: Since you're using the pathname of the file as its handle, you'll get warnings more like - Some warning at scriptname line 29, chunk 7. + Some warning at scriptname line 29, line 7. =head2 Single Argument Open