Re: use lib in EmbperlObject

2002-08-26 Thread Gerald Richter
> >> 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. >

Re: use lib in EmbperlObject

2002-08-21 Thread Gerald Richter
> > Here's what I have: > > SiteInit.html > [! use lib "/usr/local/PureMessaging/lib"; !] > Template.html > [- Execute({ isa => 'SiteInit.html' }); -] > Template.html: [+ join(", ", @INC) +] > [- Execute('*') -] > index.html > index.html: [+ join(", ", @INC) +] > > Running that the first time give

Re: use lib in EmbperlObject

2002-08-16 Thread Kee Hinckley
At 7:25 AM +0200 8/16/02, Gerald Richter wrote: > > >> Is there any way to put a "use lib" command in a called routine (e.g. >> >> [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later >> >> "use" commands? > >use lib is global, because it affects the global @ISA, so it doesn'

Re: use lib in EmbperlObject

2002-08-15 Thread Gerald Richter
> >> Is there any way to put a "use lib" command in a called routine (e.g. > >> [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later > >> "use" commands? use lib is global, because it affects the global @ISA, so it doesn't matter where you put it, it will affect all use stateme

Re: use lib in EmbperlObject

2002-08-15 Thread Kee Hinckley
At 8:55 AM +1000 8/16/02, Gavin Carr wrote: >On Thu, Aug 15, 2002 at 04:12:06PM -0400, Kee Hinckley wrote: >> Is there any way to put a "use lib" command in a called routine (e.g. >> [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later >> "use" commands? Any other suggestions.

Re: use lib in EmbperlObject

2002-08-15 Thread Gavin Carr
On Thu, Aug 15, 2002 at 04:12:06PM -0400, Kee Hinckley wrote: > Is there any way to put a "use lib" command in a called routine (e.g. > [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later > "use" commands? Any other suggestions. I hate having to put it in > every single file.

use lib in EmbperlObject

2002-08-15 Thread Kee Hinckley
Is there any way to put a "use lib" command in a called routine (e.g. [- Execute({ isa => 'SiteInit.html' }); -]) and have it impact later "use" commands? Any other suggestions. I hate having to put it in every single file. (Right up there with [$ var $this $][- $this = shift -] at the begi