in reply to Just another japh
# This is one big regex which sets # $_ = ",:_,,},,],,_:){:"},,:,,,,,_,:(,:,,,(:){,,{,:,,,(,:[:){,:(:"}:" +",:},:,,,(" s;;,:_,,},,],,_:){:"},,:,,,,,_,:(,:,,,(:){,,{,:,,,(,:[:){,:(:"}:"",:}, +:,,,(;; # This translates individual characters, e.g., all ',' in $_ become 'P +'. # $_ = "PQWPPVPPTPPWQRSQXVPPQPPPPPWPQUPQPPPUQRSPPSPQPPPUPQYQRSPQUQXVQX +XPQVPQPPPU" y;,:_}][{"();PQWVTYSXUR;; # This is the step that had me confused. # It takes each individual character and xors it with 'a'. For example +: # a (ASCII 97) xor P (ASCII 80) is ASCII 49 ('1') # Now $_ = "1061171151160320971101111161041011140321121011141080321040 +97099107101114" s;(.);a^$1;eg; # This takes each group of three and prints out their chr(); e.g., 106 + becomes chr(106) = 'j' # now $_ = "just another perl hacker" s!(...)!chr$1!eg; # Append a newline and print $_.=$/; print;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Just another japh
by physi (Friar) on May 08, 2003 at 09:03 UTC | |
by Skeeve (Parson) on May 08, 2003 at 12:41 UTC | |
by physi (Friar) on May 08, 2003 at 12:52 UTC |