$q is my query object (I'm using CGI.pm in an OO style.)
e.g
# Set up Pragmas + external modules
use strict;
use warnings;
use Data::Dumper;
use CGI qw(:standard);
my $q = new CGI;
print $q->header;
print "Hello World!\n";
my $cookie_name = "whatever you wanna call it";
my %cookie_hash = (map { split /=/, $_ } $q->cookie('$cookie_name'));
+#
print Dumper \%cookie_hash;
print $q->end_html;