Clustericious::Client::Object::Params
my $data = [ { name => 'foo', value => 'foovalue' }, { name => 'bar', value => 'barvalue' } ]; my $obj = Clustericious::Client::Object::Params->new($data); $obj->{foo} -> 'foovalue'; $obj->{bar} -> 'barvalue';
Takes an array reference of hashes with 'name' and 'value' keys and transforms it into a single flattened hash of name => value.
new
my $obj = Clustericious::Client::Object::Params->new($data);
To install Clustericious::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Clustericious::Client
CPAN shell
perl -MCPAN -e shell install Clustericious::Client
For more information on module installation, please visit the detailed CPAN module installation guide.