SPVM::BlessedObject::Array - Array based blessed object
SPVM::BlessedObject::Array is array based blessed object.
This object contains SPVM array object.
# Convert SPVM array to Perl array reference my $nums = $spvm_nums->to_elems; # Convert SPVM array to Perl binary data my $binary = $spvm_nums->to_bin; # Convert SPVM array to perl text str(decoded str). my $str = $spvm_str->to_string; # Convert SPVM array to perl array reference which contains decoded strings. my $strs = $spvm_strs->to_strings;
my $nums = $spvm_nums->to_elems;
Convert SPVM array to Perl array reference.
my $binary = $spvm_nums->to_bin;
Convert SPVM array to binary data.
Binary data is unpacked by unpack function.
unpack
An exmaple when array is int array:
my @nums = unpack 'l*', $binary;
my $str = $spvm_str->to_string;
Convert SPVM array to perl text str(decoded str).
my $strs = $spvm_strs->to_strings;
Convert SPVM array to perl array reference which contains decoded strings.
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.