Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] unicode and Perl- how to pass command line unicodearguments



On 16/02/06, Ian Wells <ijw@example.com> wrote:

>  On 15/02/06, Stephen J. Turnbull <stephen@example.com> wrote:
>
> > This can work, but (a) it depends on programmer discipline and (b) is modal.  Ie, the
> > "use utf8;" declaration is at the top of the file which the programmer may or may
> > not ever look at carefully.
>
> If you embed utf8 in a file and don't put utf8 at the top you deserve a good
> slapping.  (Perl's a bit bad for boilerplate anyway, so you usually want
> 'use strict;use warnings' up there for a start.)

I'll take this a step further and say that any programmer who does not
examine the top of every source file--at least in a cursory
way--deserves a good slapping.

I don't know about Lisp, but I do know about C and all of its
descendents: the top of the file is where global stuff goes. Stuff
like including header files, static variables, and constants in C;
compiler pragmata (is that the plural of "pragma"? seems like it
should be) and module includes in Perl; so on and so forth for other
C-like languages.

-Josh

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links