in reply to Is this Bad form? (DBI)

I think it is a good convention to use capitalization to help give the reader an indication of the scope:

$SOME_CONSTANT = 42; $Some_Global = '/some/directory'; $some_local = shift;

YuckFoo

Replies are listed 'Best First'.
Re: Re: Is this Bad form? (DBI)
by Grygonos (Chaplain) on Aug 26, 2003 at 13:15 UTC
    or you could just do use constant MYCONST => XXXas stupid as it is. sometimes aliasing 1 and 0 to true and false is handy for readability. While we all know that 0 is false and 1 is true, it makes it easier, for those of us who have a nosy boss who wants to see your code but knows nothing about programming, if you write self-documenting/easy to read code. The big advantage to using use constant that I have found is that they are bareword operators, so you spend less time trying to remember whats a constant and whats not.