At Thu, 19 Sep 2002 11:54:59 +0200, Andre Landwehr wrote:
> I have a file containing some [$sub$]'s which I import with
> Execute ({inputfile => 'functions.epo', import => 1})
> I don't seem to have access to the request object in those
> subs although I have [-$req=shift;-] in the top of the page. My
> guess is that an imported page is only parsed once and for
> subroutine calls only the already loaded subs are executed.
since you're importing, the code/functions will be run in the same
"namespace" as the page doing the Execute.
thus you can only do $req=shift in either the Executing page or the
Executed page, since they're shifting the same @_ array.
ie: continue to do $req=shift in your Executing page. remove
$req=shift from your Executed page, and just continue using $req
anyway.
(if that makes any sense)
--
- Gus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]