[OT] do { local *FH; }

2001-03-15 Thread Matt Sergeant
On Wed, 14 Mar 2001, Paul wrote: Learned a new trick: my $fh = do { local *FH; }; I've had trouble using this under mod_perl - bizarre results with it not actually being lexical and not closing the file. I had to resort to using Apache-gensym in the end. Has anyone else seen the same? --

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Malcolm Beattie
Paul writes: --- Brian Ingerson [EMAIL PROTECTED] wrote: Garrett Goebel wrote: From: Paul [mailto:[EMAIL PROTECTED]] Anybody know offhand *why* my() lexicals are supposedly faster? Yes this is OT, but I'll contribute to the problem as well... My coworker Gisle

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Alexander Farber (EED)
Paul wrote: --- Robert Landrum [EMAIL PROTECTED] wrote: I could be wrong, but as I recall, when your program enters a scope, perl immediatly identifies the the scratchpad to use. Then, it need only search backwards up the tree of scratchpads to find the variable "$x", which is faster

%ENV

2001-03-15 Thread Gene Dascher
Is the ENV hash sanitized and repopulated between the time the Perl*Auth handlers are run and the requested cgi is executed? I am setting an ENV key in one of my handlers that I'd like to use in a cgi that resides in a protected directory. Is it possible to retain that variable throughout the

Re: %ENV

2001-03-15 Thread darren chamberlain
Gene Dascher ([EMAIL PROTECTED]) said something to this effect on 03/15/2001: Is the ENV hash sanitized and repopulated between the time the Perl*Auth handlers are run and the requested cgi is executed? I am setting an ENV key in one of my handlers that I'd like to use in a cgi that resides

RE: %ENV

2001-03-15 Thread Gene Dascher
Well, with the subprocess_env(), I can see the key that I set in my cgi now, but the value that I set the key to is a Hash reference that I need to use in my cgi. Unfortunately, all I get now is ENV{'TEST_VAR'} = HASH(0x860a278), and I can't pull my values out. Thanks for the help; it looks

RE: %ENV

2001-03-15 Thread Geoffrey Young
-Original Message- From: darren chamberlain [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 7:19 AM To: modperl Subject: Re: %ENV [snip] Try fiddling with $r-subprocess_env; I've had good results that way. e.g.: $r-subprocess_env('TEST_VAR', 1); I

Re: %ENV

2001-03-15 Thread darren chamberlain
Gene Dascher ([EMAIL PROTECTED]) said something to this effect on 03/15/2001: Well, with the subprocess_env(), I can see the key that I set in my cgi now, but the value that I set the key to is a Hash reference that I need to use in my cgi. Unfortunately, all I get now is ENV{'TEST_VAR'} =

Re: Installing mod_perl on MacOSX

2001-03-15 Thread Ken Williams
[EMAIL PROTECTED] (Philippe de Rochambeau) wrote: has anyone ever installed/compiled mod_perl for MacOSX? If so, how exactly did you do it? See this thread: http://forum.swarthmore.edu/epigone/modperl/philsmangyi ------ Ken

RE: %ENV

2001-03-15 Thread Geoffrey Young
-Original Message- From: darren chamberlain [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:34 AM To: [EMAIL PROTECTED] Subject: Re: %ENV Gene Dascher ([EMAIL PROTECTED]) said something to this effect on 03/15/2001: Well, with the subprocess_env(), I can see

Re: %ENV

2001-03-15 Thread darren chamberlain
Geoffrey Young ([EMAIL PROTECTED]) said something to this effect on 03/15/2001: Gene Dascher ([EMAIL PROTECTED]) said something to this effect on 03/15/2001: Well, with the subprocess_env(), I can see the key that I set in my cgi now, but the value that I set the key to is a Hash

Re: unreleased sockets using DBI / DBD::mysql under mod_perl?

2001-03-15 Thread Tom Mornini
On Thu, 15 Mar 2001, Joern Janoschek wrote: What makes me scratch my head is the fact that the exit was placed before the dbi connect call... which leads me to the conclusion that the exit was simply not executed at all, no override version or something else. Strange... Why scratch you

Memory Leaks?

2001-03-15 Thread Jason Leidigh
At the the mod_perl/Apache web site (http://perl.apache.org/faq/#Why_is_httpd_using_so_much_memor) there is a section about memory usage and a subroutine is given which can help test for memory leaks which perl "does no overtly report" Joel Wagner reports that calling an undefined

Re: Memory Leaks?

2001-03-15 Thread Robin Berjon
At 15:50 15/03/2001 -0300, Jason Leidigh wrote: I was able to clean up a number of errors which seemed as though they were indeed causing leaks. For example: $regex = qr'xx?'i; Causes the following error: (?i-xsm:xx?) can't `Regexp::DESTROY' AUTOLOADs will catch DESTROYs, the latter being

RE: cgi_to_mod_perl manpage suggestion

2001-03-15 Thread Rob Bloodgood
On Wed, 14 Mar 2001, Perrin Harkins wrote: On Wed, 14 Mar 2001, Issac Goldstand wrote: I still think that the above line is confusing: It is because mod_perl is not sending headers by itelf, but rather your script must provide the headers (to be returned by mod_perl). However,

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Paul
Many thanks to everyone, Malcolm in particular, for humoring my curiosity and assisting my esoteric research. Hope it helped someone else, too, and sorry for cluttering up the board. But it *dod* say it was Very[OT]. ;o) Paul --- Malcolm Beattie [EMAIL PROTECTED] wrote: Paul writes: ---

List your software with new feature-based search engine

2001-03-15 Thread BigSofte Vendor Services
Dear Software Manufacturer: We can help you make it much easier to promote your software on the Internet. Your company is invited to list its software products at no charge on BigSoftE, the first Internet Software Search Engine. Launching this month, Bigsofte provides detailed product

Re: List your software with new feature-based search engine

2001-03-15 Thread Randal L. Schwartz
"BigSofte" == BigSofte Vendor Services [EMAIL PROTECTED] writes: BigSofte Dear Software Manufacturer: I didn't know people still "manufacture" software. I thought only marketing "manufactured" things. BigSofte We can help you make it much easier to promote your software BigSofte on the

segfault on subrequest?

2001-03-15 Thread Pierre Phaneuf
I have a PerlTransHandler that is very simple: sub handler { my($r) = @_; my($info); $info = $r-lookup_file('/home/pp/pierre.jpg')-content_type(); warn("content type is $info\n"); return DECLINED; } But it causes a segfault when invoked... I removed the "-content_type()", so that

Re: List your software with new feature-based search engine

2001-03-15 Thread Paul
lol Spamming a technical list seems less than prudent, doesn't it? Jeez, I mean, just one anti-social teenager can make nasty packages like the "I Love You" virus what could several thousand experienced hackers with literally hundreds (minimally) of commercial-grade servers at their

RE: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Garrett Goebel
Title: RE: Very[OT]:Technical query re: scratchpad lookups for my() vars From: Paul [mailto:[EMAIL PROTECTED]] Anybody know offhand *why* my() lexicals are supposedly faster? Because a dynamic variable allocates a new value at runtime which occludes the global value until it's scope

Re: Very[OT]:Technical query re: scratchpad lookups for my() vars

2001-03-15 Thread Brian Ingerson
Garrett Goebel wrote: From: Paul [mailto:[EMAIL PROTECTED]] Anybody know offhand *why* my() lexicals are supposedly faster? Because a dynamic variable allocates a "new" value at runtime which occludes the global value until it's scope expires. In contrast, a lexical variable is unique

Re: List your software with new feature-based search engine

2001-03-15 Thread Stas Bekman
On Thu, 15 Mar 2001, Ask Bjoern Hansen wrote: On Thu, 15 Mar 2001, BigSofte Vendor Services wrote: Dear Software Manufacturer: @%#@$%^. I must have made a typo or whatever while going through the days spam and postings from non-subscribers. (averaging on a handful or three of spams and a

Re: List your software with new feature-based search engine

2001-03-15 Thread Ask Bjoern Hansen
On Fri, 16 Mar 2001, Stas Bekman wrote: [1] I do the same thing for the lists at perl.org and for whatever reason the modperl lists gets about the same amount or more spam than the perl.org lists combined. I suppose that's because of the multiply mirrors of the perl.apache.org,

Re: List your software with new feature-based search engine

2001-03-15 Thread Stas Bekman
On Thu, 15 Mar 2001, Ask Bjoern Hansen wrote: On Fri, 16 Mar 2001, Stas Bekman wrote: [1] I do the same thing for the lists at perl.org and for whatever reason the modperl lists gets about the same amount or more spam than the perl.org lists combined. I suppose that's

cvs commit: modperl-2.0/xs/maps apr_functions.map apr_structures.map apr_types.map

2001-03-15 Thread dougm
dougm 01/03/15 16:01:39 Modified:xs/maps apr_functions.map apr_structures.map apr_types.map Log: add new apr_ipsubnet_ functions Revision ChangesPath 1.4 +5 -1 modperl-2.0/xs/maps/apr_functions.map Index: apr_functions.map

cvs commit: modperl-2.0/xs/APR/NetLib APR__NetLib.h

2001-03-15 Thread dougm
dougm 01/03/15 16:02:50 Added: xs/APR/NetLib APR__NetLib.h Log: wrapper for apr_ipsubnet_create() Revision ChangesPath 1.1 modperl-2.0/xs/APR/NetLib/APR__NetLib.h Index: APR__NetLib.h

Sites running mod_perl

2001-03-15 Thread Lars Helgeson
I was just visiting the comanche site and saw a list of mod_perl applications. Just thought I'd share with you a few sites that I have created using mod_perl. Note: these are all on the same quad-P3 server and receive together over 5,000 uniques per day. We could not handle this kind of load

cvs commit: modperl-2.0/lib/Apache SourceTables.pm

2001-03-15 Thread dougm
dougm 01/03/15 18:30:47 Added: lib/Apache SourceTables.pm Log: module to include the generated source tables and build hash versions of each Revision ChangesPath 1.1 modperl-2.0/lib/Apache/SourceTables.pm Index: SourceTables.pm

cvs commit: modperl-2.0/util apr_pool_check.pl

2001-03-15 Thread dougm
dougm 01/03/15 18:32:44 Added: util apr_pool_check.pl Log: script to check which apr_ functions do not have access to a pool Revision ChangesPath 1.1 modperl-2.0/util/apr_pool_check.pl Index: apr_pool_check.pl

cvs commit: modperl-2.0/src/modules/perl mod_perl.c modperl_callback.c modperl_callback.h

2001-03-15 Thread dougm
dougm 01/03/15 21:08:15 Modified:lib/ModPerl Code.pm src/modules/perl mod_perl.c modperl_callback.c modperl_callback.h Log: use proper prefix for all modperl_callback_ functions Revision ChangesPath 1.46 +1 -1

cvs commit: modperl-2.0/src/modules/perl modperl_cmd.c modperl_cmd.h mod_perl.c mod_perl.h modperl_config.c modperl_config.h modperl_interp.c modperl_interp.h

2001-03-15 Thread dougm
dougm 01/03/15 21:52:29 Modified:lib/ModPerl Code.pm src/modules/perl mod_perl.c mod_perl.h modperl_config.c modperl_config.h modperl_interp.c modperl_interp.h Added: src/modules/perl modperl_cmd.c modperl_cmd.h Log: move cmd stuffs

cvs commit: modperl-2.0/src/modules/perl modperl_callback.c modperl_handler.c modperl_handler.h

2001-03-15 Thread dougm
dougm 01/03/15 22:32:15 Modified:lib/ModPerl Code.pm src/modules/perl modperl_callback.c modperl_handler.c modperl_handler.h Log: move some code into modperl_handler_lookup_handlers() so it can be reused for {get,set,push}_handlers

cvs commit: modperl-2.0/src/modules/perl modperl_config.h

2001-03-15 Thread dougm
dougm 01/03/15 22:35:18 Modified:src/modules/perl modperl_config.h Log: allow modperl_config_req_get() to not core-dump if r == NULL Revision ChangesPath 1.23 +2 -2 modperl-2.0/src/modules/perl/modperl_config.h Index: modperl_config.h

cvs commit: modperl-2.0/src/modules/perl modperl_callback.c modperl_handler.c modperl_handler.h

2001-03-15 Thread dougm
dougm 01/03/15 22:41:46 Modified:src/modules/perl modperl_callback.c modperl_handler.c modperl_handler.h Log: need to return the address incase caller needs to initialize (e.g. push/set) Revision ChangesPath 1.33 +4 -4

cvs commit: modperl-2.0/src/modules/perl modperl_config.c modperl_filter.c modperl_handler.c modperl_mgv.c modperl_types.h

2001-03-15 Thread dougm
dougm 01/03/15 23:30:25 Modified:lib/ModPerl Code.pm src/modules/perl modperl_config.c modperl_filter.c modperl_handler.c modperl_mgv.c modperl_types.h Log: no need for modperl_{files,process,connection}_config_t Revision Changes