Hi,
--- On Sun, May 9, 2010 at 8:50 PM, Raman.P <[email protected]> wrote:
| I have putup the notes in my blog at
|
| http://ramanchennai.wordpress.com/2010/05/09/perl-introductory-sesson-notes/
\--
One more suggestion is to also address Perl style guide. Perl is very
readable, depending on how one writes it. For example, in 5. Scalars,
instead of writing:
$age=$age+1; #treated as numeric
one can write it as:
$age = $age + 1; # treated as numeric
In 8. Conditionals-IF, instead of writing:
if ($mark>75){
one can write it as:
if ($mark > 75) {
In 10. Loops, instead of writing:
for ($i=0;$i<10;$i++){
one can write it as:
for ($i = 0; $i < 10; $i++) {
If Perl style guide practices are inculcated at an early stage during
learning, it will definitely reflect on the larger modules or programs
written, which in turn will help others read your code.
Some references:
http://perldoc.perl.org/perlstyle.html
http://www.perl.com/doc/FMTEYEWTK/style/slide-index.html
SK
--
Shakthi Kannan
http://www.shakthimaan.com
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc