Re: Other Globals in %once
David Wheeler <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Apr 28, 2004, at 11:00 PM, Dave Rolsky wrote:
> If you're calling set_global _before_ executing a component, then those
> globals should be available in the <%once> block. If they're not,
> that's
> a bug, I think.
The variables are declared by C<use vars>, but they aren't yet assigned
to.
> Hmm, there is no downside, is there? In fact, I'd say that's a better
> way
> to do it:
>
> {
> local $In::Package::burner = $self;
>
> ... # exec comp
> }
>
> That looks better than calling set_global, I'd say.
Okay, I'll make the change. Thanks.
David
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click