Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Decode a binary string

by jmcnamara (Monsignor)
on Apr 01, 2004 at 20:51 UTC ( #341796=note: print w/replies, xml ) Need Help??


in reply to Decode a binary string


Here's one way:
perl -le 'print pack "B*", pop' 0100100001101001

--
John.

Replies are listed 'Best First'.
Re: Re: Decode a binary string
by BrentDax (Hermit) on Apr 01, 2004 at 23:12 UTC

    ...d'oh.

    There's a reason my Perl geek code includes "I pack and unpack my suitcase."

    =cut
    --Brent Dax
    There is no sig.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-05-16 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (62 votes). Check out past polls.

    Notices?