in reply to Re^6: Cleaning up Code
in thread Cleaning up Code
Honestly, I haven't been motivated to address this post since it'll take a bit of time and the issues I've already raised haven't been addressed.
I'd also like to see the following replaced with CGI or CGI::Simple:
#Parse Data read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); @pairs = split(/&/, $buffer); foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ s/^\s+//; $FORM{$name} = $value; }
That means that instances of $FORM{XXX} become calls to param.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Cleaning up Code
by atmosphere (Novice) on Dec 17, 2008 at 20:31 UTC | |
|
Re^8: Cleaning up Code
by atmosphere (Novice) on Jan 09, 2009 at 16:17 UTC |