Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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

Replies are listed 'Best First'.
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 meditating upon the Monastery: (7)
As of 2016-10-01 21:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (8 votes). Check out past polls.