Joshua Cantara wrote:
> Geoffrey Young wrote:
> 
>> it shouldn't matter if you're using a .pm or a .pl, as long as the .pl is
>> run through ModPerl::Registry.
> 
> 
> Excellent... B-b-b-but how do I create/access $r (the RequestRec object)
> in a perl script?

  my $r = shift;

:)

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.

HTH

--Geoff

Reply via email to