On Thu, 30 May 2002 at 20:11:14 +0200, Magnus Bodin wrote:

> What is the idiom (golf) to pack 7-bit-ASCII to 8-bit-code? 

I'm sure others will do better, but try this:
sub s8{pack'B*',join'',grep$i++%8,(unpack'B*',pop)=~/./g}

Hmm... what was that golfing trick to avoid "join"? I forget.
But this really belongs on the golf list (hence the Reply-To)

Ian

Reply via email to