SPVM::Data::Array - SPVM Array
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 $string = $spvm_nums->to_str;
Convert SPVM array to perl text string(decoded string).
This method have mean only when SPVM array is byte array.
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.