Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: A bit of fun with pack/unpack

by moritz (Cardinal)
on Jun 28, 2013 at 17:17 UTC ( #1041292=note: print w/ replies, xml ) Need Help??


in reply to A bit of fun with pack/unpack

You can shave off a few characters by not using parens, and the blockless form of map:

use strict; use warnings; @==map unpack('B24',pack'V',$_),12580855,16776063,103792,10764419,8561 +235,856483,1974885; for$"($[..23){$:=$[;for$\($[..6){$:.=substr $=[$\],$",!$[}print pack'B +8',$:}print$/;


Comment on Re: A bit of fun with pack/unpack
Download Code
Re^2: A bit of fun with pack/unpack
by FloydATC (Hermit) on Jun 30, 2013 at 12:04 UTC

    That's so much better, thanks for the tip :-D


    -- FloydATC

    Time flies when you don't know what you're doing

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041292]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-02 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (53 votes), past polls