Hi Gerald, now I am doing only this:
$udat = Embperl::Req::GetSession(); in the called script; however I still get the error: ------------- [Wed Jun 08 16:22:13 2005] [error] Can't locate auto/Embperl/CurrReq.al in @INC (@INC contains: /usr/local/apache2/htdocs/warreng/ /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-th read-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/li b/perl5/vendor_perl . /usr/local/apache2) at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Embperl.pm line 350\n[Wed Jun 08 16:22:13 2005] [warn] [24374]ERR: 32: Warning in Perl code: Constant subroutine ModPerl::ROOT::ModPerl:: --------------- what is CurrReq.al and why does it not exist? Allen On Wed, Jun 08, 2005 at 05:24:04AM +0200, Gerald Richter wrote: > > > > I would like to call a CGI script, and have %udat be > > available to it. I thought the way to do that was: > > > > Embperl::Req::SetupSession($req_rec); > > Execute({subreq => '/cgi-perl/env_test.pl?param1=...¶m2=...'}); > > > > Since you are already using Embperl, you don't need to call SetupSession > > > > and then in thescript.pl I would put: > > > > %udat = Embperl::Req::GetSession($req_rec); > > > > This does not take the Apache Request Record and it returns a reference to > %udat, so jus call it as > > $udat = Embperl::Req::GetSession(); > > This should work. > > Gerald > > -- happy random snippet from Allen Haim reviewing Allen Haim: He often begins a song with a story of the type, "I wrote this song when ... ", and the title and lyrics will match accordingly. [more at http://www.netherrealm.net/~allen/songs] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]