Baz has asked for the wisdom of the Perl Monks concerning the following question:
Why are brackets compulsory with an If statement even if it has only one line, unlike in C?
Perl - if(a!=b) { a = b; } C - if(a!=b) a = b;
|
---|
Replies are listed 'Best First'. | |
---|---|
•Re: If Statement
by merlyn (Sage) on Nov 04, 2002 at 18:50 UTC | |
by jdporter (Paladin) on Nov 05, 2002 at 17:46 UTC | |
by merlyn (Sage) on Nov 05, 2002 at 18:18 UTC | |
by Aristotle (Chancellor) on Nov 06, 2002 at 12:17 UTC | |
by merlyn (Sage) on Nov 06, 2002 at 18:42 UTC | |
by Aristotle (Chancellor) on Nov 06, 2002 at 19:57 UTC | |
by Baz (Friar) on Dec 30, 2003 at 19:50 UTC | |
Re: If Statement
by kabel (Chaplain) on Nov 04, 2002 at 18:50 UTC | |
by merlyn (Sage) on Nov 04, 2002 at 18:52 UTC | |
Re: If Statement
by fruiture (Curate) on Nov 04, 2002 at 18:51 UTC | |
Re: If Statement
by Enlil (Parson) on Nov 04, 2002 at 18:47 UTC | |
Re: If Statement
by defyance (Curate) on Nov 04, 2002 at 18:55 UTC |
Back to
Seekers of Perl Wisdom