[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI.pm



>I asked before, and got no response, so I will ask again: has any found any
>problems using CGI.pm and MacPerl?

had a wierd one just last week.

i'm porting an old script that uses cgi-lib.pl, and i found what i think
are two problems
(i'm not certain yet, this only happened on friday, i haven't checked
everything to make sure its not
just me being stupid...)

the first name-value pair that got put into %in had a space added to the
front of the name -
so http://www.server.com.au/cgi-bin/funnyscript.pl?name1=value1&name2=value2
had no $in{'name1'}, but did have $in{' name1'} (note the space) which
contained value1

also, when i was debugging this, i tried:
foreach $key (%in){print "<BR>$key=$in{$key}\n";}

and i got:
 name1=value1
value1=value1
name2=value2
value2=value2

i'm sure this is telling me something important, but it was friday afternoon...
if i find out more, i'll post a follow up.

cheers

iain



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch