Mailing List Archive


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

Re: [tlug] Bleeding pragmata (was: Re: unicode and Perl- how topass command line unicode arguments)



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

> On 17/02/06, Josh Glover <jmglov@example.com> wrote:
> > OK, sure. But most pragmata (at least in Perl) tend to belong at the
> > top of the file, because they are GLOBAL.
>
> No they aren't, they're usually active for the remainder of the scope (e.g.
> file).

Right you are. A singularly poor choice of wording on my part: I meant
"global in the scope of this file", which as you point out, is not
really global at all.

You win this round, but allow me a parting shot:

> Although if I want a global (or file static) somewhere localised I might
> well not put it at the top of the file.  I certainly don't put variable
> definitions at the top of functions any more.

Good luck with that if you are writing C code...

-Josh "the angry young man" Glover

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links