SPVM::StringBuffer - String buffer
use StringBuffer; # new my $buffer = StringBuffer->new; # push string $buffer->push("abc"); $buffer->push("def"); # Convert to string - abcdef my $string = $buffer->to_string;
String buffer.
static method new : StringBuffer ()
Create new StringBuffer object.
method value : mutable string; ()
Get the value of the string buffer.
method length : int ()
Get the string length.
method push : void ($string : string)
Push a string to the string buffer.
method push_char : void ($char : byte)
Push a character to the string buffer.
method to_string : string ()
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.