Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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
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 romping around the Monastery: (8)
As of 2015-07-29 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls