Geoffrey Young wrote:
Excellent... B-b-b-but how do I create/access $r (the RequestRec object)
in a perl script?

  my $r = shift;

Wow, in hindsight, that's pretty obvious. I just didn't think that because it applies to modules it would apply to scripts. Learn something new every day!

if you're running your perl scripts under ModPerl::Registry the request
object is the first argument passed to your script.  see some of the scripts
in the test suite for examples, such as

  ModPerl-Registry/t/cgi-bin/redirect.pl

you can also grep for nph in the ModPerl-Registry/t directory and find some
useful examples there.

I'll go poking around in there, that's probably a good resource I haven't even considered.

HTH

Thanks so much!

Reply via email to