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.