Suggestion 1: DEFAULT VARIABLE. Always, always, always use $_ to avoid having to explicitly feed args.

Suggestion 2: Regexen: abuse the hell out of 'alternate begin/end chars' (m;foo;).

Suggestion 3: Quote operators. Abuse the 'alternate' quote operators, such as qq, q, and qx, along with their alternate end/begin chars.

Suggestion 4: Use map, not variables and fors, and pipe yer list from one map to another.

Suggestion 5: (Ab)use whitespace and 'end of lines' (aka semicolons) and put them in semi random spots. So instead of my $faz='foo';print $foo, do something like
my $faz = 'foo' ;print$foo;
Suggestion 6: Comments are also fun, but make them misleading. i.e. $_=$; #assign my dollar sign to $_, as this can help mess people up.

Suggestion 6: builtin variables. Learn to love them always. $;='fooz' is much more fun then $s1='fooz'.


Over all, you can go two ways. First (the bestest) is to be misleading. Evals + alternate quoting operators are fun to abuse here. Secondly (boring) is to just jumble as many maps and special vars + random punctuation together as you can, while the first is probably the best, the second can be almost impossible to figure out (without lots of effort), and is probably easier.

In reply to Re: My very own little JAPH by BUU
in thread My very own little JAPH by cfreak

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.