Re: [ANN] Testing Tool for mod_perl CGI Applications: Puffin

2002-05-05 Thread Mark Fowler
What's a mod_perl CGI Application? :-) Mark. -- s'' Mark Fowler London.pm Bath.pm http://www.twoshortplanks.com/ [EMAIL PROTECTED] ';use Term'Cap;$t=Tgetent Term'Cap{};print$t-Tputs(cl);for$w(split/ +/

Re: Scope of Perl Special Variables

2002-05-05 Thread Bill Catlan
Stas Bekman wrote: This explains why by default %ENV is set for each request afresh. http://perl.apache.org/guide/performance.html#PerlSetupEnv_Off Great. Thank you Stas. Now I know /how/ that happens, but I don't know /why/ the existing inctances' ENV is not clobbered. My guess is that a

Re: Scope of Perl Special Variables

2002-05-05 Thread Bill Catlan
I thought that using 'local' would successfully scope those globals to within a sub, so you could,k for example, slurp an entire file by doing: local $/ = undef; my $file = FH; Or am I wrong in that? I use it frequently, and don't seem to have any troubles. --Jon R. It is my

Pb with Win32 Installation

2002-05-05 Thread Jean-Marc Paulin
Hi there, I have downloaded the CSV Image file modperl-2.0_20020502042105.tar.gz and tried to compile it for Apache 2.0.35. The build is ok (or looks good anyway) but Apache dies during the nmake test. Any ideas ? I do not mind trying to debug this, but I have no idea where to start Any

Using a 404 ErrorDocument to serve content

2002-05-05 Thread Ken Williams
Hi, I was thinking of writing yet-another-photo-album-server, and I had the idea that I'd write a handler to serve resized versions of JPEGs (very original, I know ;-). The idea is that I'd put a bunch of JPEGs on the server at locations like foo/123.jpg , and then if a request came for

Re: Can mod_perl help me use ENV variables in httpd.conf?

2002-05-05 Thread Jason Woodward
You'll also need to use a PerlPassEnv directive prior to your Perl block. For debug purposes, try adding the following inside your Perl block: print join(\n, map { $_ = $ENV{$_} } (keys %ENV)), \n; OR, my personal quick-debugging catch-all: use Data::Dumper; print Dumper \%ENV; You'll be

question on apache::asp

2002-05-05 Thread minghong
So can I use this module to run asp.net on apache(installed on windows)? I need to run asp.net on apache(windows). Thanks.

Re: Scope of Perl Special Variables

2002-05-05 Thread Jon
I thought that using 'local' would successfully scope those globals to within a sub, so you could,k for example, slurp an entire file by doing: local $/ = undef; my $file = FH; Or am I wrong in that? I use it frequently, and don't seem to have any troubles. --Jon R. PGP Key fingerprint = 12

Re: question on apache::asp

2002-05-05 Thread Joshua Chamas
[EMAIL PROTECTED] wrote: So can I use this module to run asp.net on apache(installed on windows)? I need to run asp.net on apache(windows). No. Apache::ASP supports perl scripting for ASP v2.0 model. ASP.net is not supported, nor C#, VBScript, etc. -- Josh

Re: Scope of Perl Special Variables

2002-05-05 Thread Mark Fowler
On Sun, 5 May 2002, Jon wrote: I thought that using 'local' would successfully scope those globals to within a sub, so you could,k for example, slurp an entire file by doing: local $/ = undef; my $file = FH; Or am I wrong in that? I use it frequently, and don't seem to have any

Re: Pb with Win32 Installation

2002-05-05 Thread Randy Kobes
On Thu, 2 May 2002, Jean-Marc Paulin wrote: Hi there, I have downloaded the CSV Image file modperl-2.0_20020502042105.tar.gz and tried to compile it for Apache 2.0.35. The build is ok (or looks good anyway) but Apache dies during the nmake test. [ .. ] apache\cgihandlerok

Re: Scope of Perl Special Variables

2002-05-05 Thread Stas Bekman
Bill Catlan wrote: Stas Bekman wrote: This explains why by default %ENV is set for each request afresh. http://perl.apache.org/guide/performance.html#PerlSetupEnv_Off Great. Thank you Stas. Now I know /how/ that happens, but I don't know /why/ the existing inctances' ENV is not

localizing $dbh attributes with Apache::DBI to minimize the numberof connections made

2002-05-05 Thread Stas Bekman
Recently 5.8.0-tobe has fixed the leak with localization of tied hash values, so I'm fixing the following guide's section as follows. This is an important update, since the guide didn't say anything about $dbh attr changes affecting other handlers in the same process. Please review that