NAME

Curse::Parameters - Form Parameters

SYNOPSIS

use Curse::Parameters;

my $params = Curse::Parameters->new(foo => 'bar', baz => 23);
print "$params";

DESCRIPTION

Curse::Parameters is a generic container for form parameters.

ATTRIBUTES

parameters

my $parameters = $params->params;
my $parameters = $params->parameters;
$params        = $params->parameters(foo => 'b;ar', baz => 23);

METHODS

Curse::Parameters inherits all methods from Nevermore and implements the following new ones.

new

my $params = Curse::Parameters->new;
my $params = Curse::Parameters->new('foo=b%3Bar&baz=23');
my $params = Curse::Parameters->new(foo => 'b;ar', baz => 23);

append

$params = $params->append(foo => 'ba;r');

as_string

my $string = $params->as_string;

merge

$params = $params->merge($params2, $params3);

parameter

my $foo = $params->params('foo');
my $foo = $params->parameter('foo');
my $foo = $params->parameter(foo => 'ba;r');

parse

$params = $params->parse('foo=b%3Bar&baz=23');

remove

$params = $params->remove('foo');