On Sat, 2 Feb 2002, Terrence Brannon wrote:

> page global variables are defined is <xsp:logic> sections, but how?
> with our? with my?
> is "use strict" in effect?

It's easy if you deconstruct what happens when a page is compiled.

Foo.xsp:

<xsp:page>
 <xsp:logic>
  my $foo;
 </xsp:logic>
 <page>
  ...
 </page>
</xsp:page>

Becomes:

package Foo.xsp; # well, kinda.

my $foo;

sub handler {
  # stuff to output <page> and code within there
}

1;

So it doesn't matter if you use my or our. But yes, use strict is in
effect. Why would you want it any other way? ;-)

> Why am I the only one asking all these questions?!

You tell me.

-- 
<!-- Matt -->
<:->Get a smart net</:->


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

Reply via email to