Hi TIA,

you could use a unique package name (as Apache::ASP does it with global variables without explizit package name - i think), for example some kind of time-information merged into the package name.

But i think the easiest way would be the usage of session variables:

sub my::load_all
{ [..]
 $Session->{'loaded1'} = "somevalue";
 [..]
}

[..]
<my:display variable1=<%=$Session->{'loaded1'}%>/>
[..]

sub my::unload_all
{  [..]
  delete $Session->{'loaded1'};
  [..]

Of course you have to activate Sessions to use this.

Helmut

--On Sunday, November 02, 2003 19:30:52 +0000 luciflatum <[EMAIL PROTECTED]> wrote:

Hi all!
I am using the XML engine to embed dynamic content into an HTML page
via Apache::ASP. What I need is a simple way to retain the values of
the variables between different XML tags within the same page.

Something like this:

---TOP OF PAGE---
<my:load_all/>

<my:display variable="loaded1"/>

<my:unload_all/>
---END OF PAGE---

This layout triggers a problem: if I use the strict pragma I can't use
the same variables (each my:: function is isolated in scope); if I
declare a global variable in my::load_all there are all the usual
conflicts between different sessions.

Does anybody know how to fix this?

TIA


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to