Hi Rajeev, On Sun, 4 Sep 2011 08:05:52 -0700 (PDT) Rajeev Prasad <rp.ne...@yahoo.com> wrote:
> Shlomi Fish, > > this is not complete code but part of it, '...' in top and bottom denote > that, strict warning etc is used. Well, first of all, it would be a good idea to include the complete code. Using "..." to denote that strict/warnings/etc. are used is not a commonly-accepted notation, and is very easy to miss. > all variables etc are already created using > 'my'. i am using global variables. You shouldn't pre-declare your variables at the top. Instead declare them in the smallest scope that they are used: http://perl-begin.org/tutorials/bad-elements/#declaring_all_vars_at_top > what should anybody name their variables, > is upto them. Not entirely correct. There are good methods for naming variables and bad methods. I've seen and heard of code with identifiers given in non-English languages, there are obfuscated pieces of code where variables are given short, meaningless names, and there are other examples. Source code is also intended for people to read, and should be optimised for that. > you seem to be someone who get arrogant after learning few > things. Why do you feel I am arrogant? > there are other people on this list more well known then you, they > either do not help if they do not like, or some of them understand things and > help. How is this related to the issue? > if you think a code can be improved, you can learn from people like > John W. Krahn, he has suggested the same. What did John suggest, and what can I learn from him? Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ "Humanity" - Parody of Modern Life - http://shlom.in/humanity Deletionists delete Wikipedia articles that they consider lame. Chuck Norris deletes Deletionists whom he considers lame. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/