Re: ToObject "preamble" Parameter
Dave Rolsky <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 28 Sep 2004, David Wheeler wrote: > On Sep 28, 2004, at 8:26 AM, Dave Rolsky wrote: > > > So what's the problem? Why would 'use utf8' need to come before that? > > The whole purpose of 'use utf8' is to make sure Perl handles UTF8 chars > > in the source code properly. Since we know wha the "set the request" > > code > > looks like, we can know it doesn't need 'use utf8'. > > The preamble is output to the object files *after* the %once block. > What if I have UTF-8 encoded data in the %once block? This is exactly > the problem I ran into on the Radio Free Asia project. Doh, I get it. And on reflection, it doesn't particular make sense to provide access to $m in the preamble, since we don't provide it in the <%once> block, and the preamble is kind of like a <%once> block that is set for every component. -dave /*=========================== VegGuide.Org Your guide to all that's veg. ===========================*/ ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php