Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

my first JAPH

by jake (Monk)
on Sep 05, 2001 at 00:01 UTC ( #110141=obfuscated: print w/replies, xml ) Need Help??

My first JAPH. Hope you like...
#!/usr/bin/perl @rof=qw(4 13 -1 9);@rof=reverse(@rof); $dro = 'A' ; sub Z{ eval $_[0] };$Y='; for@rof ( (++ord$dro +_$ )rhc ) tnirp; '; $Y; sub X { return reverse $_[0] }; $Y=~s/\(/m4vg/g;$dro;$Y =~ s/\)/\(/g ; $rof ;$Y=~s/m4vg/\)/g;$Y=X($Y); Z($Y);
--jake
"This space intentionally left blank" -Zork

Replies are listed 'Best First'.
Re: my first JAPH
by blakem (Monsignor) on Sep 05, 2001 at 01:56 UTC
    Very nice. I like the evaled reversed code, for@rof is quite cool.

    I think your substitutions are a bit too decipherable.

    Good: $Y=~s/\(/m4vg/g; Better: $Y=~s s\(sm4vgsggsi; Good: $Y =~ s/\)/\(/g ; Better: $Y =~ s s\)s(sggsi ; Good: $Y=~s/m4vg/\)/g; Better: $Y=~s(m4vg))\))g;
    Very commendable for a first japh though.

    -Blake

      Thanks for the tips. I'll definately keep these in mind for now on. Here is what it looks like using your suggestions:
      #!/usr/bin/perl @rof=qw(4 13 -1 9);@rof=reverse(@rof); $dro = 'A' ; sub Z{ eval $_[0] };$Y='; for@rof ( (++ord$dro +_$ )rhc ) tnirp; '; $Y; sub X { return reverse $_[0] }; $Y=~s s\(sm4vgsggsi;$Y=~s s\)s(sggsi ; $rof;$Y=~s(m4vg))\))g;$Y=X($Y); Z($Y);
      I tried a few more ideas in this last version:
      #!/usr/bin/perl ;@rof=qw(4 13 -1 9);@rof=reverse(@rof); ;sub gg{eval$_[0]};$dro='A';$q=''."".'; ;for@rof((++ord$dro+_$)rhc)tnirp;(q$)g; ;';$q||=$gg;sub g{return reverse$_[0]}; ;$q=~s)\()\"\')g;$s||=$q;$s=~s~\)~\(~g; ;$g=$s;$g=~s^\"\'^\)^g;$g=g($g);gg($g);
      And now I shall retire this obfuscation and start working on my next one...

      --jake
      "This space intentionally left blank" -Zork

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://110141]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2019-10-18 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?