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

Re: read string (which is in binary) and make decision

by flexvault (Parson)
on Nov 17, 2012 at 16:26 UTC ( #1004322=note: print w/ replies, xml ) Need Help??


in reply to read string (which is in binary) and make decision

Welcome hey_frind,

    My requirement is i need to read each string (always in binary)

Just a caution. The example strings represent binary information, but are actually ASCII characters for '0' and '1'. If the data your working with is in actual binary format, you may need to covert to ASCII characters to run the scripts. If that is the case then 'pack/unpack' will be your friend. Look at the 'b' and 'B' formats.

Good Luck!

"Well done is better than well said." - Benjamin Franklin


Comment on Re: read string (which is in binary) and make decision
Re^2: read string (which is in binary) and make decision
by hey_frind (Initiate) on Nov 22, 2012 at 00:23 UTC
    Thank you every one with the wonderful feedback and helping me get started on perl'ing !

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-12-21 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls