hi,

I was thinking will it be good if the braces are used but not required for
ops like while, until, if, unless ...etc... what I have in mind :

if  $x > 10 print $x;
work as
if ($x > 10) {print $x};

OR

while $i < 10 print $i;
mean
while ($i < 10) { print $i };

I know that some will tell that when the condition is more complicated this
will not work for the readability of the program, but there we can still use
braces...
this is only the shortcut, and will make things clearer for shorter
things...

while $x > 10 && $y > 5 print $x+$y;

while $x > 10 && $y > 5
 { print "Result : \n"; print $x+$y; }

will still work 'cause if the first condition is false the second one and
"print" will not be executed.

=====
iVAN
[EMAIL PROTECTED]
=====



Reply via email to