laziness, impatience, and hubris | |
PerlMonks |
Re^5: Cookie and Sessionby Anonymous Monk |
on Nov 04, 2011 at 02:31 UTC ( [id://935819]=note: print w/replies, xml ) | Need Help?? |
@parameters = split(/&/,$request); CGI, which you're already using CGI, does that for you, and does it correctly, so you should actually use it :) Please don't copy/paste that read(STDIN, $request,$ENV{'CONTENT_LENGTH'}); anymore Read use CGI or die;, especially Ovids CGI Course, CGI Programming 101. Read CGI Help Guide and Troubleshooting Perl CGI scripts Read this if you want to cut your development time in half!
While you're already doing all this reading, might as well read the CGI documentation and the examples, those that come with CGI, and some others, like Re: Help!! Premature ending of script headers?, Re^3: Trying to get an RSS to display. Once you get past simple programs like this
CGI::Application/http://cgi-app.org/ can help you organize your program , as could mojo / dancer / catalyst
In Section
Seekers of Perl Wisdom
|
|