Steve McKay > String-Buffer-0.05 > String::Buffer

Download:
String-Buffer-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.05   Source  

NAME ^

String::Buffer - a simple string buffer class.

SYNOPSIS ^

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

  $buf->writeln('Foo');
  print $buf->read();
  $buf->flush();
  $buf->write('Bar');
  print $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).

syntax highlighting: