> >> 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.
>
>
> 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
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'
> >> 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
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.
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.
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