Idiomatic is using the language in the accent of the language. The problem with this is that people unfamiliar with the idiom find it difficult to understand. Consider something like a Swartzian Transform, if you arent particularly familiar with the language just seeing it is going to make a lot of people boggle.

@sorted=map { $list[$_->[0]] } sort { $a->[1] <=> $b->[1] || $a->[0] <=> $b->[0] } map { [ $_ , func($list[$_]) ] } 0..$#list;

The above might make a lot of sense to you and me, but to some non perl programmer asked to tweak your code while you are on holidy its just gibberish.

Anyway, this is probably not the best example as the ST is a fairly standard tool in the toolbox but i think you get the idea. Just think of all those times youve managed to put some very complex logic on the lhs of a for modifier using only boolean and ternary operators.

---
$world=~s/war/peace/g


In reply to Re^4: Thread on Joel on software forum : "I hate Perl programmers." by demerphq
in thread Thread on Joel on software forum : "I hate Perl programmers." by techcode

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.