On Tue, Jun 26, 2001 at 06:05:15PM -0400, Gross, Stephan wrote:
> Why is this style
>
> if ($x) {
> do this;
> do that;
> }
>
> typically preferred over
>
> if ($x)
> {
> do this;
> do that;
> }
>
> I like the latter example because it's easier to cut and paste the braces
> and everything in between. I also think it looks better.
Hey! I'm with you.
> But none of the
> top programmers ever seems to do this.
Oh :-/
Have you ever looked at Perl/Tk? Nick has a style all of his own ....
> Just wondering...
It's just style. I blame K&R. Use what you like but be consistent.
Have you read perlstyle?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net