> >> On a related topic. If I do a "use somelibrary" in a template, and > >> it imports some functions into the name space, it would be nice to be > >> able to use them in the files that are using that template. > > > > Because of the different namespaces of those files this won't work, sorry. > > Isn't this what EMBPERL_PACKAGE is for, so we can do this?
With this you can force them to be in the same namespace, but this leads to other problems like more memory usage. > Alternatively, what would be the effect of having the > EMBPERL_OBJECT_HANDLER_CLASS package do all the 'use' commands (oh, > wait, that's not in a template.) > You may use the EMBPERL_OBJECT_HANDLER_CLASS and make a smal wrapper around the functions you need and then call them via [- $r = shift ; $r -> myfunc() ; -] or you directly implement them in the class you set with EMBPERL_OBJECT_HANDLER_CLASS. Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]