C:\cpanrun\depot\main\contrib-patched\perl\CPAN\src\Data-Hive\blib/lib/Data/Hive/Store/Param.pm


NAME

Data::Hive::Store::Param


DESCRIPTION

CGI-like param() store for Data::Hive.


METHODS

new

  # use default method name 'param'
  my $store = Data::Hive::Store::Param->new($obj);
  # use different method name 'info'
  my $store = Data::Hive::Store::Param->new($obj, { method => 'info' });
  # escape certain characters in keys
  my $store = Data::Hive::Store::Param->new($obj, { escape => './!' });

Return a new param() store.

Several interesting arguments can be passed in a hashref after the first (mandatory) object argument.

new

  my $store = Data::Hive::Store::Param->new($obj, \%arg);

get

Join the path together with the separator and get it from the object.

set

See get.

name

Join path together with separator and return it.

exists

Return true if the name of this hive is a parameter.

delete

Delete the entry for the name of this hive and return its old value.