more useful options | |
PerlMonks |
Re: Testing for JavaScriptby arturo (Vicar) |
on Mar 13, 2001 at 20:42 UTC ( [id://64141]=note: print w/replies, xml ) | Need Help?? |
A few comments here that might help you improve the code, maintainability-wise. I'd use CGI for parsing the input, even if you don't like the code generation functions it provides (you appear to be working with some old docs, or is it an old version of Perl?)
Instead of that gaggle of print statements, you might check out using "here documents", which work like:
I find that sort of thing easier to maintain and less visually messy (no escaping quotes!) Oh, and I *strongly* recommend use strict (and strict.pm, for that matter). Also, since this is a CGI, you should use the -T switch on your #! line. I like your use of the JS form submission, that's a good way around the problem with the cookie solution I suggested! Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In Section
Code Catacombs
|
|