First, thanks to moklevat for coining the term and to SuicideJunkie for inventing the challenge or at least a similar one (in the ChatterBox, earlier today).

I then created a Perl script that prints "Just another Perl hacker" without using any character more than once in the script. To win at "flog", you need to create the longest Perl script (most characters) that prints "Just another Perl hacker,\n" and also doesn't use any character more than once (I added the comma for tradition and the newline for other reasons).

Since there is no prize, I won't declare a "winner". So here are some suggestions for how to impress your audience:

Here's an example of a script that almost never uses the same character twice (it uses two double quotes and prints the wrong thing), in case the concept is unclear:

warn"JustANoTHe' PERL-hick,\012";

And here is a script to double-check that you haven't used a character twice in your script:

local( $/ ); $f{$_}++ for <> =~ /./gs; for( sort keys %f ) { warn "$f{$_} ($_)s!\n" if 1 != $f{$_}; print $_; }

Below is the version I posted to the CB for those who missed it and want to avoid the extra challenge of having no starting point to bias them:

- tye        


In reply to "JAPH flog", the opposite of "golf" by tye

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.