Well, enough psychobabbling from me, here is the unobfuscated obfuscated perl script... .)
Enjoy,
Autark
#!perl -l # The use of perl special variables are very popular in obfuscation. # This will put spaces between each element of a printed list. # For other strange perl variables see the perlvar manpage. $, = " "; # Using implicit returns values and seldom used constructs adds to # the obfuscation. 'do' just returns the last value interpreted, # which happens to be a hash reference. $ja = do { # A hash with the words "just", "another" as hash values (only # reversed). { typehighs => "rehtona", noh_art => "tsuj" } }; $ph = do { # A hash with the words "cker", "rl" as hash values (only # reversed). # "cker" -> "ha" + "cker" = "hacker" # "rl" -> "pe" + "rl" = "perl" { queen => "lr", crackers => "rekc" } }; # Append the missing characters for the strings "lr" and "rekc". # This is done by using certain characteristics in the ja-hash keys $ph->{crackers} .= join("", $ph, map { substr($_, 4,1) } keys %$ja); $ph->{queen} .= join("", map { substr($_, 0,3) } keys %$ja); # Use of map and grep always confuse people. Use the default # variable as much as possible. Since all our values are # reversed, we first have to reverse each of them, as a # finishing touch, we uppercase the first letter in each word print map { ucfirst reverse } map { grep { defined } values %$_ } $ja,$ph;
In reply to Unobfuscated obfuscated perl course by autark
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |