Brian Candler wrote:
> 7stud -- wrote:
>> Also:
>> 
>> result = "hello"[0]
>> puts result
> 
> No, the OP is correct. In the CGI library, cgi['foo'] is an array. This 
> is to allow for usage such as /myprogram.cgi?foo=123&foo=456
> 

I'm not seeing that.  It's my understanding that cgi handles multiple, 
indentical names with cgi.params.  For instance, given your url 
cgi.params["foo"] would return an array.  However, cgi["foo"] would 
return the string "123"


> However, the next line should probably say
> 
>     sess["bgcolor"] = cgi['bgcolor'][0]
> 
> or else later on,
> 
>     cgi.body ("bgcolor" => sess["bgcolor"][0]){
> 
> But as to the problem with CGI::Session: I'm afraid it's a very long 
> time since I bothered with rhtml or CGI, and I'm not sure that mod_ruby 
> has had much care and attention.
> 

I'm not even sure what this question has to do with mod_ruby. :(

-- 
Posted via http://www.ruby-forum.com/.