summaryrefslogtreecommitdiff
path: root/ext/IO/lib
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.ohio-state.edu>1997-08-07 00:00:00 +0000
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-08-07 00:00:00 +1200
commit3370baa86a9c5eaafcef636b532b9519a44486b1 (patch)
tree8b4eb84f8dbfa8d4120d45ed73c524dc80381444 /ext/IO/lib
parent55e314ee04d21f12e0e5a2d83912b5744a6c9659 (diff)
downloadperl-3370baa86a9c5eaafcef636b532b9519a44486b1.tar.gz
Docs of IO::Handle [PATCH]
I was caught by the following errors in documentation: Enjoy, p5p-msgid: 199707222307.TAA08380@monk.mps.ohio-state.edu
Diffstat (limited to 'ext/IO/lib')
-rw-r--r--ext/IO/lib/IO/Handle.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/IO/lib/IO/Handle.pm b/ext/IO/lib/IO/Handle.pm
index f270f3ff98..39e32f05ab 100644
--- a/ext/IO/lib/IO/Handle.pm
+++ b/ext/IO/lib/IO/Handle.pm
@@ -20,6 +20,7 @@ IO::Handle - supply object methods for I/O handles
$fh->print("Some text\n");
}
+ use IO::Handle '_IOLBF';
$fh->setvbuf($buffer_var, _IOLBF, 1024);
undef $fh; # automatically closes the file if it's open
@@ -151,7 +152,8 @@ C<_IOLBF>, and C<_IONBF> for setvbuf()--except that the buffer parameter
specifies a scalar variable to use as a buffer. WARNING: A variable
used as a buffer by C<setbuf> or C<setvbuf> must not be modified in any
way until the IO::Handle is closed or C<setbuf> or C<setvbuf> is called
-again, or memory corruption may result!
+again, or memory corruption may result! Note that you need to import
+the constants C<_IOFBF>, C<_IOLBF>, and C<_IONBF> explicitly.
Lastly, there is a special method for working under B<-T> and setuid/gid
scripts: