[Mono-list] Style

Phillip Pearson pp@myelin.co.nz
Sat, 2 Mar 2002 15:08:02 +1300


["Christian Meyer" <chrisime@uni.de> wrote:]
> I'm always using the 'bad' style ;-)
> I know the problem of adding a line or more after code ();

Note that Perl forces you to use the braces after an if, ostensibly to make
it more difficult for people to screw things up when maintaining code.

So:

    if (a) doThis();

is illegal, but:

    if (a) { doThis(); }

is fine.

Cheers,
Phil