Re: API Docs

2014-05-16 Thread Scott Lo
Remove me from the mail list please Holger Kipp 於 2014年5月16日星期五寫道: > > Am 15.05.2014 um 01:52 schrieb Worik Stanton > > >: > > > I am still trying to fathom the API. > > > > I have struck a snag with the documentation. > > > > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Sy

Re: API Docs

2014-05-16 Thread Holger Kipp
Am 15.05.2014 um 01:52 schrieb Worik Stanton : > I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis > says > > use Apache2::Connection (); > use Apache2::RequestRec (); > > my $

Re: Testing mod_perl

2014-05-16 Thread John Dunlap
If I may ask a potentially stupid question, what are you attempting to do which necessitates the use of Apache2::Directive? On Wed, May 14, 2014 at 5:01 PM, Worik Stanton wrote: > On another matter... > > On 15/05/14 05:16, Perrin Harkins wrote: > > simpler things like PerlSetVar. There is an a

Re: API Docs

2014-05-16 Thread Holger Kipp
Dear Worik, Am 15.05.2014 um 01:52 schrieb Worik Stanton : > I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis > says > > use Apache2::Connection (); > use Apache2::RequestRec (); >

Re: API Docs

2014-05-16 Thread Perrin Harkins
The $r there is the Apache2::RequestRec object. It gets passed to your handler. See the handler example in the overview: https://perl.apache.org/docs/2.0/user/intro/start_fast.html - Perrin On Wed, May 14, 2014 at 7:52 PM, Worik Stanton wrote: > I am still trying to fathom the API. > > I have

Re: Testing mod_perl

2014-05-16 Thread Worik Stanton
On 16/05/14 08:24, John Dunlap wrote: > If I may ask a potentially stupid question, what are you attempting to do > which necessitates the use of Apache2::Directive? I am randomly thrashing around trying to get started with the mod_perl API. More accurately I was. I have my bearings now and am m

Re: API Docs

2014-05-16 Thread Jie Gao
* Worik Stanton wrote: > Date: Thu, 15 May 2014 11:52:39 +1200 > From: Worik Stanton > To: mod_perl list > Subject: API Docs > User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 > Thunderbird/24.5.0 > > I am still trying to fathom the API. > > I have struck a snag with the d

Re: Trouble with mod_perl API: E.g., Apache2::Directive::conftree()

2014-05-16 Thread John Dunlap
Why can't you just do this? sub handler { my ($apache) = @_; my $documentroot = $apache->document_root; } On Tue, May 13, 2014 at 8:24 PM, Worik Stanton wrote: > I am having a lot of trouble with mod_perl APIs. > > The short of it is that when I say: > > use Apache2::Directive (); > m

Re: API Docs

2014-05-16 Thread Ken Peng
$r stands for the connection handle IMO. Most like the $dbh in a database connection. On Thu, May 15, 2014 at 7:52 AM, Worik Stanton wrote: > I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#S

Re: API Docs

2014-05-16 Thread Steven Siebert
$r is a Apache2::RequestRec instance. On Wed, May 14, 2014 at 7:52 PM, Worik Stanton wrote: > I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis > says > > use Apache2::Connection

Re: API Docs

2014-05-16 Thread Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
> What is $r? Handler context object: signature.asc Description: PGP signature

Re: API Docs

2014-05-16 Thread Samuel Gómez
I think it is a RequestRec object. But also I think it should be explicitly stated. On Thu, May 15, 2014 at 1:52 AM, Worik Stanton wrote: > I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Syn

Re: API Docs ($r)

2014-05-16 Thread Randolf Richardson
> I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis > says > > use Apache2::Connection (); > use Apache2::RequestRec (); > > my $c = $r->connection; > > > What is $r?

Re: API Docs

2014-05-16 Thread André Warnier
Worik Stanton wrote: I am still trying to fathom the API. I have struck a snag with the documentation. https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis says use Apache2::Connection (); use Apache2::RequestRec (); my $c = $r->connection; What is $r? I am miss

Re: API Docs

2014-05-16 Thread Clément OUDOT
2014-05-15 1:52 GMT+02:00 Worik Stanton : > I am still trying to fathom the API. > > I have struck a snag with the documentation. > > > https://perl.apache.org/docs/2.0/api/Apache2/Connection.html#Synopsis > says > > use Apache2::Connection (); > use Apache2::RequestRec (); > > my $c = $

Re: Testing mod_perl

2014-05-16 Thread Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
> I looked up http://perl.apache.org/docs/general/testing/testing.html This is for testing applications written on top of mod_perl2. > Where is the > documentation that shows how to arrange the files and run these tests? In . Generate the test files as describe

Re: API Docs

2014-05-16 Thread Worik Stanton
On 15/05/14 23:55, Perrin Harkins wrote: > The $r there is the Apache2::RequestRec object. It gets passed to > your handler. See the handler example in the overview: > https://perl.apache.org/docs/2.0/user/intro/start_fast.html Thank-you. That looks very useful. I can see where it was linked t