This opens up the door to a few novelty ideas too.. each submitter could submit a block of (pre-tested) code, and the site could execute it to ensure that a pre-defined list of inputs match the pre-determined set of outputs. The site could profile each person's submission (via Benchmark or something) and people would vote on their favorites (most elegant, most readable, most obfuscated, etc.) along with the system-chosen fastest and/or most CPU-friendly.

Even if it isn't used as a supplement to site experience, it would still be pretty fun. Maybe we need a more flexible XP system ("medals") that would be awarded to people for exceptional posts or as they win categories.

In this example, the trick would be doing it securely. Safe.pm is pretty safe, but only if you eliminate quite a few useful opcodes (e.g. eval and sprintf). Maybe "Safe" versions of these can be written in Perl.


In reply to Re: perl coding section... by Fastolfe
in thread perl coding section... by kiat

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.