Mojo::Cookie - HTTP 1.1 cookie base class
use Mojo::Base 'Mojo::Cookie';
Mojo::Cookie is an abstract base class for HTTP 1.1 cookies.
Mojo::Cookie implements the following attributes.
name
my $name = $cookie->name; $cookie = $cookie->name('foo');
Cookie name.
value
my $value = $cookie->value; $cookie = $cookie->value('/test');
Cookie value.
Mojo::Cookie inherits all methods from Mojo::Base and implements the following new ones.
parse
my $cookies = $cookie->parse($string);
Parse cookies. Meant to be overloaded in a subclass.
to_string
my $string = $cookie->to_string;
Render cookie. Meant to be overloaded in a subclass.
Mojolicious, Mojolicious::Guides, http://mojolicio.us.
To install Mojolicious, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious
CPAN shell
perl -MCPAN -e shell install Mojolicious
For more information on module installation, please visit the detailed CPAN module installation guide.