String::Buffer - a simple string buffer class.


String-Buffer documentation  | view source Contained in the String-Buffer distribution.

Index


NAME

Top

String::Buffer - a simple string buffer class.

SYNOPSIS

Top

  use String::Buffer;
  my $buf = String::Buffer->new();

  $buf->writeln('Foo');
  print $buf->read();
  $buf->flush();
  $buf->write('Bar');
  print $buf->flush();




DESCRIPTION

Top

String::Buffer provides a simple string buffer class.

Functions

Top

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

Top

AUTHOR

Top

Steve McKay, steve@colgreen.com

COPYRIGHT

Top


String-Buffer documentation  | view source Contained in the String-Buffer distribution.