Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Seems straightforward, but...

by tachyon (Chancellor)
on Jul 06, 2001 at 01:35 UTC ( [id://94294]=note: print w/replies, xml ) Need Help??


in reply to Seems straightforward, but...

Here is a quick decon:

$b="Just another Perl hacker.\nd"; # $c=uc join'',(split//,$b)[5,1,3,7,16,7,19,26]; # this line grabs chars out of $b and upper cases # them to give: $c = "AUTOLOAD"; # Hmm somwhow I don't think we are going to see # the crafty assembly of the _Obfuscation_() sub chop $b; # this removes the 'd' from JAPH needed to spell # the word AUTOLOAD sub a{$b}; # here we define a sub called a which returns # the string 'Just another Perl hacker.\n" # eval join'=',map"*$_",qw($c a); # this is eval *$c = *a; # otherwise written as: # *AUTOLOAD = *a; # or more traditionally sub AUTOLOAD {a()}; print _Obfuscation_(); # print AUTOLOAD sub which is a() which returns JAPH

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://94294]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found