<?xml version="1.0" encoding="windows-1252"?>
<node id="1004322" title="Re: read string (which is in binary) and make decision" created="2012-11-17 11:26:18" updated="2012-11-17 11:26:18">
<type id="11">
note</type>
<author id="733061">
flexvault</author>
<data>
<field name="doctext">
&lt;p&gt;Welcome &lt;a href="http://www.perlmonks.org/?node_id=1004286"&gt;hey_frind&lt;/a&gt;,&lt;/p&gt;
&lt;ul&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;My requirement is i need to read each string (always in binary)&lt;/b&gt;&lt;/i&gt;
&lt;/ul&gt;
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.




&lt;/p&gt;
&lt;p&gt;Good Luck!&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-733061"&gt;
&lt;p&gt;&lt;b&gt;"Well done is better than well said." - Benjamin Franklin&lt;/b&gt;&lt;/p&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1004288</field>
<field name="parent_node">
1004288</field>
</data>
</node>
