I spent 3 all nighters, and then some, coming up with my answer, getting down to 203, and enjoyed the time I spent on it. I wondered (but then gave up) about getting even a t-shirt out of it. Then I saw this thread and eventually found ton's code, and half an answer to the problem. And had some more fun trying to golf down the other half. My daughter even helped in choosing characters to use for variable names ("try a sqiggle there...")...I told her she could have the t-shirt if I won :-)

Without ton's code, I would have gotten 31st, which would still have been a pretty darn respectable position, and yes, you would have beaten me(28th!), and my hat's off to you for that, but neither of us would have won a prize. I do wonder how many used ton's code (or some other from the same source), and how we all would have done if that were not the case (it's all published, so someone could pretty easily figure it out). I am grateful to PerlMonks though, for the leg up :-) I'm sorry you feel it was a waste of time :-(

I really wish there could be a contest for good code, based on efficiency, maintainability, etc, but then of course it wouldn't be as easy to score :-)


In reply to Re^5: Perl Golf Ethics by runrig
in thread Perl Golf Ethics 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.