Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Converting Binary Numbers into Binary File

by borisz (Canon)
on Sep 14, 2006 at 08:32 UTC ( [id://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 (Chancellor) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://572890]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found