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