Testing mod_perl

2014-05-16 Thread Worik Stanton
On another matter... On 15/05/14 05:16, Perrin Harkins wrote: simpler things like PerlSetVar. There is an automated test for this though: http://cpansearch.perl.org/src/PHRED/mod_perl-2.0.8/t/response/TestApache/conftree.pm I have not used this testing frame work before (other than watch

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 to

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 http://p3rl.org/ExtUtils::MakeMaker. Generate the test files as described in

Re: API Docs

2014-05-16 Thread Clément OUDOT
2014-05-15 1:52 GMT+02:00 Worik Stanton worik.stan...@gmail.com: 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 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

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? Your code

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 worik.stan...@gmail.comwrote: I am still trying to fathom the API. I have struck a snag with the documentation.

Re: API Docs

2014-05-16 Thread Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
What is $r? Handler context object: https://perl.apache.org/docs/2.0/user/intro/start_fast.html signature.asc Description: PGP signature

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 worik.stan...@gmail.com 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

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 worik.stan...@gmail.comwrote: I am still trying to fathom the API. I have struck a snag with the documentation.

Re: API Docs

2014-05-16 Thread Jie Gao
* Worik Stanton worik.stan...@gmail.com wrote: Date: Thu, 15 May 2014 11:52:39 +1200 From: Worik Stanton worik.stan...@gmail.com To: mod_perl list modperl@perl.apache.org Subject: API Docs User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 I am still

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

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 worik.stan...@gmail.com wrote: I am still trying to

Re: API Docs

2014-05-16 Thread Holger Kipp
Dear Worik, Am 15.05.2014 um 01:52 schrieb Worik Stanton worik.stan...@gmail.com: 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

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 worik.stan...@gmail.comwrote: On another matter... On 15/05/14 05:16, Perrin Harkins wrote: simpler things like

Re: API Docs

2014-05-16 Thread Holger Kipp
Am 15.05.2014 um 01:52 schrieb Worik Stanton worik.stan...@gmail.com: 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 Scott Lo
Remove me from the mail list please Holger Kipp holger.k...@alogis.com 於 2014年5月16日星期五寫道: Am 15.05.2014 um 01:52 schrieb Worik Stanton worik.stan...@gmail.comjavascript:; : I am still trying to fathom the API. I have struck a snag with the documentation.