The idea of code golf (in any language, including Perl) is to show that YOU understand the fine details of the language. Making others do that for you is stupid cheating. Stupid because you don't learn anything. Golf works like general programming: You learn the language and the details, and combine the building blocks to a program. But unlike other programming activities, you don't optimize for cost, speed, or memory size, but only for code size. In the field of perl golf, there are some strange building blocks, most of them can be found by searching the monasty for the word "golf".

I could visit any great or not so great artist, make him or her create a piece of art for me, and pretend that it was my work. Would that make me an artist or a fool?

Spamming the monasty and my inbox with stupid golf improvement requests definitively does not make you an artist or a golf pro.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^3: Golf code in perl by afoken
in thread Golf code in perl by tt08

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.