in reply to Re: Re: "use strict;" woes
in thread "use strict;" woes

My experience is that if you look at a lot of CPAN code you will find that underscores are more popular than studly caps, package globals are usually Mixed_Case, and constants are usually ALL_CAPS. This is backed up by most of the writings on Perl style. You are of course free to do whatever you like in your code, but I don't think it's a stretch to call this a general preference.

Replies are listed 'Best First'.
Re: Re: Re: Re: "use strict;" woes
by DrHyde (Prior) on Oct 15, 2003 at 08:53 UTC
    My experience is that if you look at a lot of code whether on CPAN or elsewhere you'll find all sorts of different styles. I couldn't care less whether someone uses variables_like_this or variablesLikeThis, they're both equally readable to me and equally functional. What I do care about is the style police telling me what I should and should not do. Thankfully, perl itself ignores the style police, so I can too.
      No one is telling you what to do. Someone tried to offer a formatting tip (in a friendly way even) to a person who appears to be a newbie, and someone else jumped all over him for daring to express an opinion about readable style, and I pointed out that there is such a thing as a most common opinion about Perl style (even though the common opinion in this case is actually different from what hardburn suggested). You can feel free to write your variables as totally random strings of characters. Since I don't have to maintain your code, I don't care.