This command line works on Windows and *nix, UTF8 enabled or not.
perl -e "map {s/Z/\x24/g;eval()}map{m/(.*)/}q{map{Z\.=chr(96+(Zb|Z_>> +4&63||0xc0)&255);Zb=Z_<<8>>4&0xf0 }map{ord}map{utf8::decode(Z_);m/([^ +Â])/g}qq(¡Q1@\0\cPàñ@\xc2\x80Q \cA\0Q À\0\xc2\x80\cP0°Q );Z\.=qq[,\n] +,print''}"
I'd be interested to see how you could do this with pack/unpack.
Clint
Update - now with the trailing comma, as pointed out by agianni
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: JAPH with shifting (explained)
by clinton (Priest) on Aug 21, 2007 at 10:16 UTC | |
by goibhniu (Hermit) on Aug 21, 2007 at 17:16 UTC | |
by clinton (Priest) on Aug 21, 2007 at 17:27 UTC |