Re: PerlAddVar: documentation bug (regression?)

2009-01-14 Thread Michael Ludwig
Adam Prime schrieb: Michael Ludwig wrote: http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlAddVar_ | my @foos = $r-dir_config('foo'); This is wrong. You have to say: my @foos = $r-dir_config-get('foo'); Committed revision 734312, which updates the two examples on that

Re: PerlAddVar: documentation bug (regression?)

2009-01-14 Thread Adam Prime
Michael Ludwig wrote: Adam Prime schrieb: Michael Ludwig wrote: http://perl.apache.org/docs/2.0/user/config/config.html#C_PerlAddVar_ | my @foos = $r-dir_config('foo'); This is wrong. You have to say: my @foos = $r-dir_config-get('foo'); Committed revision 734312, which updates

Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-14 Thread Michael Ludwig
I want to build a mod_perl2 application using Sleepycat::DbXml. This is the Perl bindings to the C++ interface to Berkeley DB and Berkeley DB XML, developed by Sleepycat, now owned by Oracle (keywords: DbEnv, XmlManager, XmlContainer). Has anyone ever used this combination? Note I'm using

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-14 Thread Mark Hedges
On Wed, 14 Jan 2009, Michael Ludwig wrote: I want to build a mod_perl2 application using Sleepycat::DbXml. This is However, I don't know how to do this. Currently, I'm trying to set up things in startup.pl (loaded via PerlPostConfigRequire), store the database environment handle in a

Re: PerlAddVar: documentation bug (regression?)

2009-01-14 Thread Philip M. Gollucci
Adam Prime wrote: The PDF's are regenerated once a day. They should update at some point over the next 12 hours I think. Adam # every monday rebuild all, including pdf 30 03 * * 1 /home/perlwww/apache.org/modperl-docs/bin/site_build_force_pdf_index # update all (only changes/no pdf) every

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-14 Thread Michael Peters
cr...@animalhead.com wrote: I have a vague recollection of reading about the circumstances in which filehandles can be inherited, but can't remember where. I've been bitten by this a few times. Filehandles (and thus sockets) are inherited across forks. If your system isn't very busy you

Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread Patrick Rutkowski
I'm currently using Apache2::Reload on a development machine, but I can't for the life of me figure out what it's doing and why. I'm coming across weird behavior such as the following just about every 5 minutes: 1. Have a perfectly working page. 2. Change some `print foo` to `print bar`

Re: Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread Patrick Rutkowski
I forgot to send the httpd.conf, sorry about that. == LoadModule perl_module modules/mod_perl.so TypesConfig /etc/mime.types ServerName ubuntu Listen 80 User rutski Grouprutski DocumentRoot /home/rutski/Documents/projects/wss/install/apache/htdocs

Re: Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread David Ihnen
My experience troubleshooting this kind of issue has indicated that its likely that the package that was unloaded deleted a value stored in the package space of the module reloaded (probably set at BEGIN block time) that the subsequent require did not restore. When these errors happen the

Re: Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread Patrick Rutkowski
Hmm, I see. Interesting points, all noted. I also just realized it might have to do with which of the many apache children get which requests and when. I'm hoping that setting MaxRequestsPerChild to something like 1 or 2 (as opposed to the default 1) will help ease the pain. -Patrick

Re: Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread Mark Hedges
On Wed, 14 Jan 2009, Patrick Rutkowski wrote: Hmm, I see. Interesting points, all noted. I also just realized it might have to do with which of the many apache children get which requests and when. I'm hoping that setting MaxRequestsPerChild to something like 1 or 2 (as opposed to the

[mp2] a way to map a uri to a physical path

2009-01-14 Thread Foo JH
Hi all, I'm trying to find the class/ method which allows me to get the physical path base on the uri. Something similar to Server.MapPath('/index.htm') in ASP.NET. Any advise is appreciated. Thanks.

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Adam Prime
Foo JH wrote: Hi all, I'm trying to find the class/ method which allows me to get the physical path base on the uri. Something similar to Server.MapPath('/index.htm') in ASP.NET. Any advise is appreciated. Thanks. $r-document_root . $r-uri but that won't actually tell you if that file

Setting the CWD

2009-01-14 Thread fREW Schmidt
I am writing a CGI::App and I keep having to use full paths to get various places in my application. How can I set the CWD for a certain Location section of my code? Thanks! -- -fREW

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Foo JH
Adam Prime wrote: I'm trying to find the class/ method which allows me to get the physical path base on the uri. Something similar to Server.MapPath('/index.htm') in ASP.NET. Any advise is appreciated. Thanks. $r-document_root . $r-uri Thanks for replying. In my case it's a wee bit more

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Adam Prime
Foo JH wrote: Adam Prime wrote: I'm trying to find the class/ method which allows me to get the physical path base on the uri. Something similar to Server.MapPath('/index.htm') in ASP.NET. Any advise is appreciated. Thanks. $r-document_root . $r-uri Thanks for replying. In my case it's a

Re: Setting the CWD

2009-01-14 Thread Adam Prime
fREW Schmidt wrote: I am writing a CGI::App and I keep having to use full paths to get various places in my application. How can I set the CWD for a certain Location section of my code? If you're running your CGI::App code through Registry, and using mod_perl 2, and running under the prefork

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Foo JH
Adam Prime wrote: Foo JH wrote: Adam Prime wrote: I'm trying to find the class/ method which allows me to get the physical path base on the uri. Something similar to Server.MapPath('/index.htm') in ASP.NET. Any advise is appreciated. Thanks. $r-document_root . $r-uri Thanks for replying.

Re: [mp2] a way to map a uri to a physical path

2009-01-14 Thread Torsten Foertsch
On Thu 15 Jan 2009, Foo JH wrote: Is there a generic method so that given any uri as a parameter, the library can do the math and return the physical path? If you look for the filename for $r-uri, that means the uri of the current request then $r-filename holds that after the map-to-storage