Re: ToObject "preamble" Parameter
David Wheeler <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sep 28, 2004, at 6:12 AM, Jonathan Swartz wrote: > I haven't been following this closely, but as far as that last > suggestion - oh lord, please no. I'd almost rather implement a use_utf8 > flag. :) > > Seriously, is it something that more and more peple are going to need > to do? Yes, it is, because you either have to use it throughout your application or not use it at all. And if you have UTF-8 encoded text and need to use length() or stubtr(), then you *must* decode all of your strings to Perl's internal utf8 format. C<use utf8;> does that automatically. But I'm also fine to turn the "preamble" parameter into a true preamble--that is, something that executes even before %once. That means that I can add C<use utf8;> myself, but that $m won't be available in the preamble. But frankly, I'd be happy if $m was available in %once blocks, too (for functional processing or even scomp(), but not output). Regards, David ------------------------------------------------------- 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