Some of your lines are more than one line. The python crowed would likely try to stab your eyes out. At least that's my experience. ... perhaps the only good way to compare program size is by bytes? Also, I'm basically certain that perl golf will not impress python coders. In fact, people like merylin have argued that golf doesn't impress would be perl coders either. ;)

Still, I value this kind of competition with the python coders. TIMTOWTDI doesn't count there.

UPDATE: I suppose I wasn't very clear. Many of the one line things in that perl program would most definitely be more than one line in python ... or the python people would get mad and point out that there's only one way to do it. Any way you look at it, perl's meanings can go much farther to the right (if you're in the mood to do so), so a byte count is still better.

-Paul


In reply to Re: Knight's Tour Problem in Perl by jettero
in thread Knight's Tour Problem in Perl by ptoulis

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.