in reply to Key/Value Problem
Hmm, I looked KC's script up and see that it contains some really old code:
#Require the cgi library require './cgi-lib.pl'; #Turn off Perl buffering $| = 1; &ReadParse(*input);
Nowadays, you should be using CGI to process form data as Chady suggests; one good reason is that CGI is still in active development (which I doubt is true of cgi_lib.pl, which I have heard, but cannot personally confirm, has security issues).
Looking over the documentation for the code, it doesn't do anything that isn't already fairly simple with CGI; and since that's the industry standard, you have at least the "everybody else uses it because it's good code" reason to use it instead of this script.
I'd be wary of using stuff I found on http://www.freecode.com if this is a representative sample! Not that it's *wrong* per se, just really outdated (if you're learning to code, you should be using today's tools).
HTH perl -e 'print "How sweet does a rose smell? "; chomp $n = <STDIN>; $rose = "smells sweet to degree $n"; *other_name = *rose; print "$other_name\n"'
|
|---|