On Saturday 02 February 2002 15:41, Terrence Brannon wrote:
> page global variables are defined is <xsp:logic> sections, but how?
> with our? with my?
> is "use strict" in effect?
>
> Why am I the only one asking all these questions?!

my should let you declare a package scoped local variable. That is you can't 
actually SEE it outside the package (XSP Page), but it DOES persist once the 
package is in memory (packages never really "go out of scope"). So really its 
not different from a "regular" variable, except it has no symbol table entry, 
so it can't get stomped on by outside code. It also makes strict happy. our 
just makes a "regular" variable and its only purpose is to make strict happy. 
So you could use either my or our in XSP logic sections. Just remember that 
once the page is compiled the first time, the variable will have SOME value 
each time you call the page. Its analogous to the way Apache::Registry makes 
CGI scripts have to pay attention to the same issue. 
>
>
>
> <hacker language="Perl" type="AxKit" uniqueness="just another">
> Terrence Brannon
> </hacker>

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

Reply via email to