DaWolf has asked for the wisdom of the Perl Monks concerning the following question:
I'm getting the form data from a sub written by me that goes as follows:open(ARQ,">$dir$foo_file"); binmode ARQ; print ARQ $foo_file; close(ARQ);
I've had to do it this way because I have a <select multiple> and I need to get all selected values from it.sub GetForm { $n = 0; read(STDIN,$buffer,$ENV{'CONTENT_LENGTH'}); @par = split(/&/, $buffer); open (TXT,">dsp.txt"); foreach $temp (@par) { my ($nome,$valor) = split(/=/,$temp); $valor =~ tr/+/ /; $valor =~ s/%([0-9a-fA-F][0-9a-fA-F])/pack("C",hex($1))/eg +; $valores[$n] = $valor; $n++; } close(TXT); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Putting a file on Windows NT without multipart/form-data
by Ovid (Cardinal) on Nov 17, 2001 at 02:12 UTC |