in reply to The One True Style of indentation:
<newPerlOrder>You will use two spaces per level to indent your code. You will write one-lined 'if's when possible. You will leave space in between 'if', the parenthesized expression, and the block. The opening brace will appear on the same line as the 'if'. There will be no cuddled 'else's. Here is the One True Way. Praise japhy for showing it.
</newPerlOrder>if (condition) { # stuff # and more stuff } elsif (condition) { really-short-stuff } else { # ok }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a (from-home) job
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: The One True Style of indentation:
by Dog and Pony (Priest) on Apr 14, 2002 at 17:20 UTC | |
Re: Re: The One True Style of indentation:
by Parham (Friar) on Apr 14, 2002 at 19:28 UTC | |
Re: Re: The One True Style of indentation:
by pdcawley (Hermit) on Apr 17, 2002 at 08:23 UTC | |
Re: Re: The One True Style of indentation:
by Adze (Acolyte) on Apr 16, 2002 at 17:14 UTC | |
Re: Re: The One True Style of indentation:
by brianarn (Chaplain) on Apr 16, 2002 at 01:28 UTC |