In article <[EMAIL PROTECTED]>, Keith Ivey <[EMAIL PROTECTED]> wrote:
> _brian_d_foy wrote: > > The first time the loop > > sees an element, that element has no key in C<%Seen>. > Why the capital "S"? None of the other variables are > capitalized, and it's not standard Perl practice. Honestly, I use a capital S because I've only ever seen that variable name in that context with a capital S. However, you'll find in perlstyle: You may find it helpful to use letter case to indicate the scope or nature of a variable. That's what happening here. In general, for variables that I use only inside a contruct (like the foreach) but declare outside the construct, I use an initial capital letter. Even though in these examples it's a lexical variable, it has a scope beyond its use, so I name it like I would a package variable. -- brian d foy, [EMAIL PROTECTED]