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.
String::Buffer
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).
To install String::Buffer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::Buffer
CPAN shell
perl -MCPAN -e shell install String::Buffer
For more information on module installation, please visit the detailed CPAN module installation guide.