In Embperl.pm in function handler it would be the right place to patch.

I tried to find anything about the instance method, but found nothing
(except one example where it's used). Could you point me to any
documentation where I can find more about this instance method?

Gerald


> 
> That Makes a bucket load of common sense. :-)
> 
> FYI the Apache::Request->instance() method - if used 
> everywhere - makes sure that the $r you are using is a 
> singleton (the same Apache->request object) throughout your 
> handlers. Allowing the caching of data across handlers using 
> pnotes...It's also something easy to subclass and then you 
> can add a lot of the main 'http parsing related' subroutines 
> (that are unique to your
> site) to it. (mainly cookie access & manipulation) etc..
> 
> It does more too... Well worth investigating,
> 
> Regards
> 
> Marty
> --- Angus Lees <[EMAIL PROTECTED]> wrote:
> 
> > > Sorry I didn't specify exactly what I wanted to
> > do..
> > > 
> > > I know I can do this within the code:-
> > > 
> > > $req_rec = Apache::Request->instance($req_rec);
> > > 
> > > But for all the code which didn't do this I'm
> > looking
> > > to have the global variable $req_rec already set
> > when
> > > it gets to the emperl script...
> > 
> > I still don't get what you're trying to do (mostly because I'm not 
> > familiar with what Apache::Request->instance does),
> > but:
> > 
> > Like any other mod_perl (content) handler, the "PerlHandler Embperl"
> > line just causes &Embperl::handler($req_rec) to be invoked.  Have a 
> > look at the code and you will see just how simple this 
> function is and 
> > you should be able to either hack it in place to do what 
> you want, or 
> > wrap it in another "PerlHandler MyEmbperl" (or
> > something) class that
> > invokes the real Embperl::handler function - after doing some 
> > additional initialisation (and passing a different $req_rec value).
> > 
> > --
> >  - Gus
> > 
> > 
> 
> 
> 
>       
>       
>               
> ___________________________________________________________
> Yahoo! Messenger - NEW crystal clear PC to PC calling 
> worldwide with voicemail http://uk.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to