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:11 AM, Dave Rolsky wrote: > Actually, it's only huge if you use an Olson time zone ;) Yes, but you see my point, I trust. > I can't even imagine what weirdness would happen if the Request object > never went out of scope, since it includes references to the interp, > apachehandler, and Apache request objects. Right, but I can do that now, even without the globals, by doing this: <%once>; my $m HTML::Mason::Request->instance; </%once> The current approach of not giving them values before the execution of the %once block does not prevent this, and so protects no one from anything, IMO. > Anyway, you can _use_ the globals inside the once section, because > there's > a "use vars" block at the top of the component. But if you wan to set > them to something, that's up to you, I think. And then because they're global, it's fine, yes? So why not just assign them before executing the %once block? What does it really gain you not to? What does it protect Masonites from? Regards, 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