Brian Andrus wrote:
> 
> How do I access the $Request->ServerVariables('ALL_HTTP')->item from a .pl
> file?
> I can get at it with perscript IF I don't run any vbscript in the same page
> on IIS 5.0 (see previous post). But I can't for the life of me figure out
> how to get at it from a .pl file.
> 
> Brian Andrus

$Request is an "intrinsic" ASP object. Environment variable accessed via
the $Request->ServerVariables collection in ASP are in the %ENV hash in
a cgi. The following would be equivalent (well, one's ASP and the
other's CGI...)

$all_http = $Request->ServerVariables('ALL_HTTP')->Item; # ASP
$all_http = $ENV{ALL_HTTP};

One's definitely shorter. =)  The Win32::ASP module _almost_ stuffed the
ServerVariables collection in to the %ENV hash a la CGI, but Mr.
Sergeant decided against it. However, ASP.pm implemented this
(convenient) feature. Both are available at http://dichosoft.com/perl or
on CPAN.

HTH,
-- 
-Tim Hammerquist <[EMAIL PROTECTED]>

For every problem, there is one solution
which is simple, neat and wrong.
  - H. L. Mencken

---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to