Gerald, I am having a problem with [$ sub $] and EmbperlObject. Let me
say first that this minimal case does in fact work as it should. There
is something inexplicable going on however in my (much larger) project.
If you look at this minimal case though I think you will see why I don't
think this is a problem with my code.
Let's say I am using EmbperlObject, and EMBPERL_OBJECT_BASE is set to
base.html, and all base.html does is to Execute('*'). Then have a
subroutine under one subdirectory (relative to the website root), say
/foo/index.html, which contains:
[$ sub xxxx $]
foo
[$ endsub $]
[- xxxx -]
And if I use the same name for another subroutine under a completely
different subtree, say /bar/index.html:
[$ sub xxxx $]
bar
[$ endsub $]
[- xxxx -]
These two subroutines should be completely independent, right? But they
don't seem to be. Like I said, in the minimal case example it does seem
to work as normal. But the same situation in my larger project seems to
use the /foo/ version of the subroutine when I am executing
/bar/index.html. This only seems to happen if I have just visited
/foo/index.html, and then go over to /bar/index.html. So it looks like
some kind of caching issue. In fact, I can hit "reload" on the browser
at some later date, and it will reload with the right subroutine being
called. And if I change the name of the subroutines so that they are
different, then all works as it should, every time. But I don't see why
they should clash at all, given that they are on completely different
subtrees.
Any clues much appreciated!
TIA
-Neil
p.s. I just upgraded to 1.3.0.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]