Perl: the Markov chain saw | |
PerlMonks |
Re: Edit a List of Filesby GrandFather (Saint) |
on Apr 10, 2006 at 20:54 UTC ( [id://542369]=note: print w/replies, xml ) | Need Help?? |
A mixture of, mostly minor, stylistic issues:
That mantra should come before you do anything else! Always! Regardless of projet size! No exceptions! Comprende?
is cute, but
is clearer. In cases where the fail condition is non-zero it is even better to make it explicit:
It is tempting to comment things that you have just learned, but that can lead to over commenting and make it harder to grok the flow of the code. $var1 . 'string1' . "string2" is better written as "${var1}string1string2". Note the ${var1} usage to clarify where the variable name ends. The block for while (<FILE2CHANGE>) { is not indented. DWIM is Perl's answer to Gödel
In Section
Code Catacombs
|
|