Beefy Boxes and Bandwidth Generously Provided by pair Networks Ovid
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

de-CCS-in-7-lines-perl

by strredwolf (Chaplain)
on Mar 07, 2001 at 18:39 UTC ( [id://62811]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to 7 lines of Magic

What? Posting source code is illegal? There goes the monestary! (Quick get me the Perl2English translator) :)

Anyway, I did the minor deobfuscation, and I'm confused over the use of "read+", "unpack+" and "pack+". Sounds like it's something that could save some bytes in rsa-in-3-lines-perl.

--
$Stalag99{"URL"}="http://stalag99.keenspace.com";

Replies are listed 'Best First'.
(tye)Re: de-CCS-in-7-lines-perl
by tye (Sage) on Mar 07, 2001 at 20:09 UTC

    The "read+" can be replaced with "read ". However, if you replace "pack+" with "pack " and then end up with "pack (expr),arg,arg" then it gets parsed as "(pack(expr)),arg,arg" while "pack+(expr),arg,arg" gets parsed as "pack((expr),arg,arg)". My quick look didn't tell me if that was actually a problem for this particular script or not.

    The "unary plus" trick is a faily common way of making a call to a predeclared function without using parens around the arguments when the first arugment might have parens around it.

            - tye (but my enemies call my lawyers)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://62811]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.