Do you know where your variables are? | |
PerlMonks |
Re^2: Malicious Codeby bunnyman (Hermit) |
on Apr 26, 2005 at 21:15 UTC ( [id://451770]=note: print w/replies, xml ) | Need Help?? |
The key is the y///. The code simplifies into this:
The y operator is the same thing as the tr operator. The mapping looks like this:
That's the range of space through forward-slash, concatented with the range of colon through at-sign, and left-square-bracket through backquote, maps onto the range from ` to left-curly-bracket, plus the tilde character. If we check the ASCII character set, we can simplify this into:
So now, we can rewrite this as:
It's just a sneaky way to map punctuation characters into alphabet letters.
In Section
Perl News
|
|