I think my post as more harsh than I intended. I like contrasting solutions that display how a certain problem would be solved easier or even different in another language. But that requires that the poster highlights and explains the differences and how the differences are crucial, instead of posting a "solution" without any explanation.

For example, I have code that loops over cartesian products of arrays to find out the sets of elements that fulfill certain criteria. In the context of posts about that code, a solution in Prolog would certainly be shorter and exhibit far more beauty than nested loop constructs do in Perl. So, mentioning Prolog there, potentially with the example translated to Prolog would be OK.

As another example, changing the SQL statement from fetching all rows and then doing calculations in Perl to doing most of the calculation in the database already is another case where another language than Perl is discussed (and hopefully used).

But I didn't find any such discussion, or even beauty/succinctness/differentness in the posts by JennyC.


In reply to Re^4: Basic regex to parse source code by Corion
in thread Basic regex to parse source code by Anonymous Monk

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.