http://qs321.pair.com?node_id=572890


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}