Gisle Aas wrote:
> When you call $r->header() in scalar context it will give you all the
> headers with the given name as a single string. The headers will be
> separated by ", ". Try:
>
> print scalar($r->header("Content-Type"));
>
> When you call $r->header() in list context if will return each header
> as a separate element. For instance:
Background for people unfamiliar with the RFC: HTTP/1.1 specifies that:
Foo: bar
Foo: baz
and
Foo: bar, baz
are equivalent. So this extends that equivalency down to the API--very nice.
--
/==============================================================\
|John Stracke | http://www.ecal.com |My opinions are my own.|
|Chief Scientist |=============================================|
|eCal Corp. |The plural of mongoose is polygoose. |
|[EMAIL PROTECTED]| |
\==============================================================/