Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
You have an "x" deliminated (did I just make that word up?) string ($d) of the output of
chr() - 1
on every character of your original code. And on that topic your original code is: {@a=("A(Whfg)","A(nabgure)","A(crey)","A(unpxre)");for (@a){s/\(/\"/g;s/\)/ \"/g;tr/A-Ma-m]N-Zn-z]/N-Zn-z]A-Ma-m]/;s/N/print/;$_.=";";eval($_);}} You take every element of @a and first turn the { into " and the } into a space and a " so:
A(Whfg)
becomes ( s/\(/\"/g )
A"Whfg)
becomes ( s/\)/ \"/g )
A"Whfg "
then you use tr/A-Ma-m]N-Zn-z]/N-Zn-z]A-Ma-m]/ to turn
A"Whfg "
into
N"Just "
this works because it replaces a character, for example W, with its complement (kinda broke explanation :) i.e. W is the 10th character in N-Z, and J is the 10th character in A-M, so J replaces W. It is case insensitive because you say both A-M and a-m, etc. Then
N"Just "
becomes ( s/N/print/ )
print"Just "
then ; is added to the end of the string by $_.=";"; and the string is evaluated! for my first explanation of a obfuscation, not that bad :)

In reply to Re: Just another silly pattern by smgfc
in thread Just another silly pattern by Darkling

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2023-05-28 03:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?