I will assume that people have some concept of flow control. Each line of code is excuted successively unless you break up the code with "subroutines" and "if" statements. Refer to faq452-653 for a more detailed look at this topic.
Now lets look at some code.
#Use the CGI module. Perl ships with this module now so #your server should have it
use CGI;
$q = new CGI;
###Set the info in the cookie
##This step actually put the cookie in the proper format ##of HTTP headers and is required step.
$cookie= $q->cookie ( -name=>'cookiename',
-path=>'/',
-value=>\%info,
-domain=>..yourdomain.com',
-expires=>'365d');
###Set the cookie in the header
print $q->header(-cookie=>$cookie);
#Now you have to retreive the cookie
%visitdata = $query->cookie('cookiename');
##Now you can reference the data like this
##by the key you set
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.