Set up some test harnesses to run from the command line so you can see 
how your script behaves without having to run it through a web server.  
Since it gets its input from a cookie, set the environment variable 
HTTP_COOKIE to each test value in turn and execute the script.  (You'll 
get a mess of HTML back that'll be tedious to validate.  This is the 
point at which you learn about separation of responsibilities and the 
Model-View-Controller pattern if you want to improve how you do this in 
the future.)

-- 
Peter Scott
http://www.perlmedic.com/     http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/certificates/perl-programming.php

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to