SPVM::Hash - Key-Values Stored Data Structrue
use SPVM::Hash; # Book Data my $book = SPVM::Hash->new; $book->set_int(id => 4); $book->set(name => "Perl"); $book->set_int(price => 300); my $id = $book->get_int("id"); my $name = $book->get("name"); my $price = $book->get_int("price"); # Option Data my $opt = SPVM::Hash->new; $opt->set_int(limit => 10); $opt->set(caption => "Perl is Good Plain Old Language"); $opt->set_double(rate => 0.95);
SPVM::Hash is Key-Values Stored Data Structrue.
sub new : SPVM::Hash ()
Create a new SPVM::Hash object.
Count keys.
Set key value pair.
Get value.
Check the value existance of a key.
Delete key and value pair.
Get keys.
Get values.
Copy hash.
Set key and value pair. byte value is converted to SPVM::Byte object.
Set key and value pair. short value is converted to SPVM::Short object.
Set key and value pair. int value is converted to SPVM::Int object.
Set key and value pair. long value is converted to SPVM::Long object.
Set key and value pair. float value is converted to SPVM::Float object.
Set key and value pair. double value is converted to SPVM::Double object.
Set value with a key. the value is converted to byte type.
Set value with a key. the value is converted to short type.
Set value with a key. the value is converted to int type.
Set value with a key. the value is converted to long type.
Set value with a key. the value is converted to float type.
Set value with a key. the value is converted to double type.
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.