When a user makes a request from your server the request includes all relevant cookies. So either your code (bad idea) or a certain CPAN Module (good idea) has to parse all the cookies before you can get at the one you're looking for.
Comment on Re: CGI: How to retrieve one specific cookie?