Re: %ENV with apache modperl API

2003-11-16 Thread Geoffrey Young
> my %temp = $apache->headers_in; > foreach (keys %temp) { > print $temp{$_}; > } this should be: my $temp = $apache->headers_in; foreach (keys %$temp) { print "$_ $temp->{$_}\n"; } just because you can do it but nobody really talks about it, this is as good a place t

Re: %ENV with apache modperl API

2003-11-15 Thread Stas Bekman
Ged Haywood wrote: Hi there, On Sat, 15 Nov 2003, [iso-8859-1] "SUCH SANMART?N, GERARD" wrote: i'm trying to substitute my old cgi %ENV with $r->headers_in ... my %temp = $apache->headers_in; Isn't $apache->headers_in a hashref? Yes. It returns an APR::Table object, which is a also a tied h

Re: %ENV with apache modperl API

2003-11-15 Thread Ged Haywood
Hi there, On Sat, 15 Nov 2003, [iso-8859-1] "SUCH SANMARTÍN, GERARD" wrote: > i'm trying to substitute my old cgi %ENV with > $r->headers_in ... > > my %temp = $apache->headers_in; Isn't $apache->headers_in a hashref? 73, Ged. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: