| String-Buffer documentation | view source | Contained in the String-Buffer distribution. |
String::Buffer - a simple string buffer class.
use String::Buffer;
my $buf = String::Buffer->new();
$buf->writeln('Foo');
print $buf->read();
$buf->flush();
$buf->write('Bar');
print $buf->flush();
String::Buffer provides a simple string buffer class.
Create a new buffer object. Accepts a string as an argument.
Add some text to the buffer.
Add some text to the buffer, with a new line at the end.
Return the here-to-forth buffered content.
Empty out the output buffer.
Steve McKay, steve@colgreen.com
Copyright 2001 by Steve McKay. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1).
| String-Buffer documentation | view source | Contained in the String-Buffer distribution. |