perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: execute problems
Date Thu, 04 Dec 2003 05:41:16 GMT
Kaare Rasmussen wrote:
> If I do this
>
>   Execute ({inputfile => 'findList.sub', import => 1});
>
> Then this line in findList.sub will not be executed if it's outside
> the subs in findList.sub:
>

When you say inport => 1 only code inside [! !] is executed, because you
want to import and not to execute.

> [- $req = shift -]
>

I guess you need this in your subs, so it doesn't make sense to execute it
when you import the file anyway (because this is done only once and not for
every request).

You need to pass $req to your subs or use the way Luiz has described

Gerald

P.S. In 2.0 you could also access $Embperl::req

--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message