Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: The One True Style of indentation:

by atcroft (Monsignor)
on Apr 15, 2002 at 00:51 UTC ( #159052=note: print w/replies, xml ) Need Help??

in reply to The One True Style of indentation:

Call me a "heretic", or consider me still but an "egg" (as I do), but I think I would have to agree that there is no "true" style. As some come to perl from other languages, with the styles those languages impressed upon them, and others find perl without such shackles, we see the philosophy of TMTOWTDI show up even in such things as spacing and bracing and the other small details of coding. The important thing is that the code is usable, maintainable, and that someone can follow it, and if consistently done, so much the better. Just as an example, for code I write only for myself, I tend towards tabs, but sometimes 2 or 4 spaces; for code I post on here recently (and even some for work), I try to first run it through PerlTidy(1) with indention at 4 spaces.(2)

I have found this discussion (and most others) quite instructive, and a help as I continue still to find my way still along this path we call Perl.


  1. But then again, I also prefer lines of either 75 or 123 or 132 characters, and yes, for code I'm having to wade through for myself, I sometimes prefer cuddled elses.(3)
  2. Just my 2 cents, for what it's worth after inflation.
  3. But this is also part of why I still consider myself an "egg".

Replies are listed 'Best First'.
Reasonableness?! The horror!
by lachoy (Parson) on Apr 15, 2002 at 02:38 UTC

    Egads, who let this reasonable person into the discussion?!

    M-x auto-bs-mode

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159052]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-10-22 13:56 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.