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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]