Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Balls! Pt 4

by teamster_jr (Curate)
on Jun 13, 2006 at 13:50 UTC ( #555043=obfuscated: print w/replies, xml ) Need Help??

part 4 of an occasional series: (1,2,3)
$_='map($ ..=pack("C",--$ _),@_=unpack"C*", q^pqfo!g -#?p/cnq#<qsjou!g!qb dl#b3W:y31Dy4D2 127#-CN-29429-1-2189-5 1-251-241-63539:- 1-29311-366-279<%v>qbd l#y29311#<%q>5+bubo3 )2-2*<gps)1//31111*|%s >%`+%q02911<nbq!|%i>fy q))%s,%`0:*0:*0:<%y>)2 0)%i,20%i**+dpt%s<%z>) 20)%i,20%i**+tjo%s<w fd)%v-jou)81+)2,%y,%z* ,251+)21,jou)26,91 +%i++30)2,%i++3*,51+)% z.%y****-9*>)%q 03,%s*&)3+%q*?%q@3;2 ~1//26~qs jou!g%v^),eval$.' ;s#\s##g;eval

this generates a file called o.bmp, and shares some code with 3, but hopefully i've fixed the problems people were having (ie wrapping). if anyone has any problems please let me know and i'll try and fix it!
enjoy.
alex Update I've added a deconstruction as a reply

Replies are listed 'Best First'.
Re: Balls! Pt 4
by teamster_jr (Curate) on Jun 14, 2006 at 10:25 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://555043]
Approved by wazoox
Front-paged by grinder
help
Chatterbox?
[Corion]: I spent parts of yesterday digging into Filter::Simple to make it not change the line numbers of unfiltered code, but I think I need regex help (which will come in a SoPW I guess). I tried @lines = /((?:"...."|[^" \n]+)\n)/gs, but that matched on...
[Corion]: ... foo "\0\0\0\n" bar\n by matching the first \n instead of matching the four-bytes-in- double-quotes part
[Corion]: ... and I still don't understand why ;)
[Corion]: This is because Filter::Simple does some string-trickery, replacing all string literals with "quoted packed numbers"
[Corion]: I fear this might be a bug in the RE engine, but if it is a bug, even fixing won't help me because I need Filter::Simple for Filter::signatures , which provides signatures as a backwards compatibility feature for Perl <5.22 - and these ...
[Corion]: ... won't get a fix anyway ;) My plan B is to encode the string placeholders avoiding \r and \n

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2017-01-23 08:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (191 votes). Check out past polls.