B
Bill H
I have noticed in most perl code (and c++ code also) that when the
programmer use an if statement they usually format it like this:
if ($a == $b){
print "equal";
}
When I code I would write it this way:
if ($a == $b)
{
print "equal";
}
Is there any benefit in programming it the 1st way versus the second
way? I use the 2nd way cause it is easy to match up the { & } when
looking at the code (they are always in the same column).
Bill H www.ts1000.us
programmer use an if statement they usually format it like this:
if ($a == $b){
print "equal";
}
When I code I would write it this way:
if ($a == $b)
{
print "equal";
}
Is there any benefit in programming it the 1st way versus the second
way? I use the 2nd way cause it is easy to match up the { & } when
looking at the code (they are always in the same column).
Bill H www.ts1000.us