Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Converting Binary Numbers into Binary File

by borisz (Canon)
on Sep 14, 2006 at 08:32 UTC ( #572890=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Converting Binary Numbers into Binary File
in thread Converting Binary Numbers into Binary File

15 for me ;-)

perl -C0 -pe '$_=pack"B16",$_'
Boris


Comment on Re^4: Converting Binary Numbers into Binary File
Download Code
Re^5: Converting Binary Numbers into Binary File
by shmem (Canon) on Sep 15, 2006 at 21:23 UTC
    Oookay - as perl golf rules, you add some switches up front: these count.

    And in what way your STDOUT is guaranteed binmode here? hmm?

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-11-26 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (177 votes), past polls