in reply to Storable: freeze/unfreeze
See the node use CGI or die;. You should not parse CGI form data by hand.
There should be a space between the colon and the t.
You don't check to see if the read was successful. Does the length match CONTENT_LENGTH?
The semicolon is an alternate delimeter that will be supported more in the future. This will break your code.
Do you realize that \cM is the same as \r?
Whoops! If we have multiple values, you've just overwritten them.
You can replace all of that broken code with the following three lines:
use CGI qw/ :cgi-lib :standard /; print header; my %FORM = Vars;
Cheers,
Ovid
Vote for paco!
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|