Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

My Philosophy...

by penguinfuz (Pilgrim)
on May 30, 2002 at 16:26 UTC ( [id://170438]=obfuscated: print w/replies, xml ) Need Help??

use warnings;use strict; my@o=qw.66 111 114 101 100 111 109 32 105 115 32 97 32 103 105 102 116 33.; my$o=pack("C*",@o);print"$o\n";

Replies are listed 'Best First'.
Re: My Philosophy...
by webfiend (Vicar) on Jun 05, 2002 at 16:03 UTC

    This is cute. I'm new on the whole obfu thing, though (kinda the opposite of how I like to code). Are the values packed platform-dependent? I would think they could come out as truly funky gibberish if I was using a significantly different environment.

    Not a critique, just a question. Please, continue with the obfu-fun!


    "All you need is ignorance and confidence; then success is sure."-- Mark Twain
      webfiend wrote: I'm new on the whole obfu thing, though (kinda the opposite of how I like to code)
      Me too, there's a guy at work who write ALL his code ala-obfu... We joke about writing a parser for his code so others can help maintain it! Anyway, I put this together to use as a signature and it got mashed up because I didn't want to exceed that imaginary 4 line signature limit, so it really wasn't 'born' obfu. ;)

      Are the values packed platform-dependent?
      From my hazy understanding of templates, using the 'C' template just packs as an unsigned 1 byte integer, so long as the interger is within 1 byte everything is cool. But packing with a 'V' or an 'N' may actually produce more 'gibberish' free output regardless of the environment.

      I would think they could come out as truly funky gibberish if I was using a significantly different environment.
      To be honest I would not know as I have no environment other than Linux. This little piece of obfu was inspired by something I first read about pack() in the Cookbook. I must admit my knowledge of pack() has not grown so much since then, (no real need to use it yet apart from silly party tricks), so webfiend++ for making me dig through the Camel book some more!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://170438]
Approved by RedDog
Front-paged by jarich
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-18 04:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found