SPVM::StringBuffer - String buffer
use SPVM::StringBuffer; # new my $buffer = SPVM::StringBuffer->new; # push string $buffer->push("abc"); $buffer->push("def"); # Convert to string - abcdef my $string = $buffer->to_string;
String buffer.
sub new : SPVM::StringBuffer ()
Create new SPVM::StringBuffer object.
sub length : int ($self : self)
Get the string length.
sub push : void ($self : self, $string : string)
Push a string to the string buffer.
sub push_char : void ($self : self, $char : byte)
Push a character to the string buffer.
sub to_string : string ($self : self)
Convert the string buffer to a string.
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SPVM
CPAN shell
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.