On May 29, 5:30 am, [EMAIL PROTECTED] (Brian) wrote: > On May 28, 6:04 pm, [EMAIL PROTECTED] (Paul Lalli) wrote: > > > On May 28, 3:22 pm, [EMAIL PROTECTED] (Brian) wrote: > > > > my variable names end with A for array and H for hash, > > > Pointless. Variable names in Perl identify what kind of variable they > > are. @ for arrays, % for hashes. [ ] for accessing an element of a > > hash, { } for accessing element of a hash. > > no, I disagree. Changing @ to $ is confusing
@ is for entire arrays. $ is for single elements. How is that confusing? >... besides that, my > naming > is consistent, and helps me understand what I'm writing. I think you > missed it on that one Your method relies on the programmer being consistent. Perl's built- in method is inforced via the compiler. Your method relies on all programmers who will ever read or modify your code following the same convention. > ... its a disservice to beginners to say 'pointless' like that.. You're right, it's actually worse than pointless, since it's not enforceable nor guaranteed, and therefore creates a false sense of security. Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/