As per documentation of Apache2::RequestRec the following code in your handler will get you a cookie\'s value:
my $r = shift; my $cookval = $cookies{\'cooki