Hi, i'm trying to substitute my old cgi %ENV with $r->headers_in ... (In my code $r is $apache)
So i try this, but i get no entries for n the hash, why??? (modperl 2) (this code is used in a handler in the SSI phase) my %temp = $apache->headers_in; foreach (keys %temp) { print $temp{$_}; } # now what i'm used to do $apache -> subprocess_env->clear; $apache -> subprocess_env; In other part of the code i tried the next: $info->{host} = $apache->headers_in->get('REMOTE_HOST'); $info->{cookie} = $apache->headers_in->get('HTTP_COOKIE'); instead of the usual $info->{host} = $ENV{REMOTE_HOST}; $info->{cookie} = $ENV{HTTP_COOKIE}; But again it is not working. Am i doing any error? is this the way to "substitute" %ENV? Can i really substitute the %ENV or i must use it to have access to this data?? Thanks a lot. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html