Today I tried to use Apache2::connection, and i couldn't
why?
because these are the docs:
=====
use Apache2::Connection ();
# is connection still open?
$status = $c->aborted;
=====
now how the hell do i get $c?
Apache2::Connection->new() ?
Apache2::Connection->new(\$r) ?
no.
in the keepalive section, i finally see this:
====
use Apache2::RequestRec ();
use Apache2::Connection ();
use Apache2::Const -compile => qw(:conn_keepalive);
...
my $c = $r->connection;
====
That drove me f*ck*ng crazy for too long.
Can someone add that little bit about grabbing the $c to the main
docs so the next person who decides to do a little bit of work at
their neighborhood bar is just drunk and happy, and not drunk and
belligerent.
//Jonathan Vanasco
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
| RoadSound.com / Indie-Rock.net
| Collaborative Online Management And Syndication Tools
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org
why?
because these are the docs:
=====
use Apache2::Connection ();
# is connection still open?
$status = $c->aborted;
=====
now how the hell do i get $c?
Apache2::Connection->new() ?
Apache2::Connection->new(\$r) ?
no.
in the keepalive section, i finally see this:
====
use Apache2::RequestRec ();
use Apache2::Connection ();
use Apache2::Const -compile => qw(:conn_keepalive);
...
my $c = $r->connection;
====
That drove me f*ck*ng crazy for too long.
Can someone add that little bit about grabbing the $c to the main
docs so the next person who decides to do a little bit of work at
their neighborhood bar is just drunk and happy, and not drunk and
belligerent.
//Jonathan Vanasco
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
| RoadSound.com / Indie-Rock.net
| Collaborative Online Management And Syndication Tools
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org