Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Now this is a japh!

by azatoth (Curate)
on Mar 05, 2001 at 19:32 UTC ( [id://62250]=obfuscated: print w/replies, xml ) Need Help??

Ok, as you've probably seen, my previous attempts at obfuscation have been severely lacking - mainly due to my level of skill regarding Perl has also been found lacking. I have been reading Programming Perl, and I found the world of  pack(). I think this is a really cool function, and I have used it here to write a japh that actually looks fairly obfuscated. If you don't agree, remember the important thing here is that I learned a new function!

#!/usr/bin/perl $j;$a;$p;$h; $j=pack"cccc",106,117,115,116; $a=pack"ccccccc",97,110,111,116,104,101,114; $p=pack"cccc",112,101,114,108; $h=pack"cccccc",104,97,99,107,101,114; print "$j $a $p $h\n";


Azatoth a.k.a Captain Whiplash

Get YOUR PerlMonks Stagename here!
Want to speak like a Londoner?

Replies are listed 'Best First'.
Re: Now this is a japh!
by tedv (Pilgrim) on Mar 06, 2001 at 02:22 UTC
    Incidently, you can use formatting like "c4" in place of "cccc". This won't change the obfuscation any, except the code is tighter. It's a good habit to be in for coding in general though. By the way, shouldn't it be 'Perl', not 'perl'?

    -Ted

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-19 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found