develooper Front page | perl.perl5.porters | Postings from December 2000

[PATCH] open() example in perlfunc.pod

Thread Next
From:
Karsten Sperling
Date:
December 30, 2000 13:31
Subject:
[PATCH] open() example in perlfunc.pod
Message ID:
"iraun1.ira.0090801:001230.213049"@ira.uka.de
Here's the patch for a bug in one of the
open() examples in perlfunc.pod again.
Seems like it got lost last time.

- Karsten

--- perlfunc.pod        Sat Dec 30 22:24:55 2000
+++ perlfunc.pod-8269   Sat Dec 30 22:22:59 2000
@@ -2882,7 +2882,7 @@
     sysopen(HANDLE, $path, O_RDWR|O_CREAT|O_EXCL)
        or die "sysopen $path: $!";
     $oldfh = select(HANDLE); $| = 1; select($oldfh);
-    print HANDLE "stuff $$\n";
+    print HANDLE "stuff $$\n");
     seek(HANDLE, 0, 0);
     print "File contains: ", <HANDLE>;


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About