Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

my first JAPH

by jake (Pilgrim)
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);
"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.


      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...

      "This space intentionally left blank" -Zork

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2022-05-29 09:40 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (101 votes). Check out past polls.