Like you said ... this is all opinion, the important thing is consistency. (And if you don't use vi ... )

However, i will continue to fight for tabs over spaces when indenting on the left side. The right side was made for spaces, but using spaces on the left side is just too much typing for me. "Let's see, do i hit the tab 3 times or the space bar 12 times?" I am sorry, but using spaces on the left side is simply having to do more work than i really need to do. I started out using spaces, switched to tabs, and i have been using tabs ever since. Besides:
# need to convert 4 spaces to a tab? perl -pe 's/ /\t/g' foo.pl # need to convert a tab to 4 spaces? perl -pe 's/\t/ /g' foo.pl
These could be made more robust, but i think the point has been made. As long as we can easily convert from one to the other, we shouldn't worry about whether or not we use tabs or spaces, as long as we are consistent. But me? I use tabs. I am just too lazy not to.

"The reason I advocate spaces is that they are inherently consistent and do not rely on an editor or terminal variable as tabs do."

And this is exactly the same reason why i advocate tabs. If i am on a smaller screen, i can set my tabstop in vi to 3. If i am on a larger screen, i can set the tabstop to 6. It is more flexible. Thanks to expand, i can deliver my code with tabs converted to any number of spaces. Let the computer do the work.

P.S. (FWIW), this is a heated argument at the Computer Science department at my University. The camps have picked sides and the line has been drawn. Some professors teach their students to use tabs, others spaces. Neither side has convinced the other that they are right, and i doubt they ever will. Now, let's get back to Perl! ;)

UPDATE:

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

In reply to (jeffa) Tabs are from Venus, Spaces are from Mars by jeffa
in thread Losing or overwritting values by sulfericacid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.