NAME
String::Buffer - simple string buffer class.
SYNOPSIS
use String::Buffer;
my $buf = new String::Buffer();
$buf->write('Foo');
print $out->read();
$out->flush();
$buf->write('Bar');
print $out->flush();
DESCRIPTION
String::Buffer
provides a basic string buffer class.
Functions
- new()
-
Create a new buffer object. Accepts a string as an argument.
- write()
-
Add some text to the buffer.
- writeln()
-
Add some text to the buffer, with a new line at the end.
- read()
-
Return the here-to-forth buffered content.
- flush()
-
Empty out the output buffer.
CHANGES
AUTHOR
Steve McKay, steve@colgreen.com
COPYRIGHT
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).