in reply to will be happy to read the explanation

You could have just looked it up? Click here for a explanation of the code.

Martin
  • Comment on Re: will be happy to read the explanation

Replies are listed 'Best First'.
Re^2: will be happy to read the explanation
by dynamo (Chaplain) on Nov 20, 2007 at 01:26 UTC
    Thanks, excellent reference--
    but how does it get from a state where:
    $_ = '=]=>%-{<-|}<&|`{'
    to
    $_ = 'system"rm -rf/"'
    using only the following statement:
    y; -/:-@[-`{-};`-{/" -;;
    Doesn't tr/// require the destination characters to be included in the mapping? I don't see any alphanumerics in there at all.
      I am quite confused on how y; -/:-@[-`{-};`-{/" -;; works as well.
        Ah I figured it out. Read up on tr/// and ull get it Think about this $_ = "abc"; y/a-c/x-z/; print $_; # Prints xyz It goes off an ascii table. ` is right before a and { is right after z.

        Ah it all makes sense now.

        y; -/:-@[-`{-};`-{/" -;;

        That translates characters.

        So (space) thru /
        : thru @
        [ thru `
        { thru }

        Take that set of characters and switch it out with the corresponding character in this list
        ` thru { (Includs a-z)
        /
        "
        -

        Pretty nifty.

Re^2: will be happy to read the explanation
by shirokoff (Initiate) on Nov 08, 2007 at 21:35 UTC
    hey.. thanks a lot... you just saved a huge period of my time!