[Lavanya Deepak] Lavanya Deepak
Technology for Better Business and Higher Standards of Life

Friday, September 26, 2008

The Lovely Perl way of braces { }

The Lovely Perl way of braces { }

In Perl programming language, it is always mandatory that even a single statement in a conditional block be encompassed within { } unlike C# and other programming languages where only multiple statements are mandated for the curly brace blocks.

But I would say, the Perl way is really excellent we should follow this strictly for other languages also. This makes our code look cleaner and neater. We know where the control starts and stops and would enable a cleaner debugging too.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home