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

perlfunc open example

Thread Next
From:
Karsten Sperling
Date:
December 21, 2000 06:52
Subject:
perlfunc open example
Message ID:
"iraun1.ira.0026201:001221.145204"@ira.uka.de
A small bug in the open() example from perlfunc.
- Karsten

--- perlfunc.pod-orig   Fri Sep  1 21:19:14 2000
+++ perlfunc.pod        Thu Dec 21 15:47:07 2000
@@ -2846,7 +2846,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