<?xml version="1.0" encoding="windows-1252"?>
<node id="996817" title="Re^5: converting artibrary binary data to numeric values" created="2012-10-02 03:18:17" updated="2012-10-02 03:18:17">
<type id="11">
note</type>
<author id="5348">
Corion</author>
<data>
<field name="doctext">
&lt;p&gt;If you just want "the values", then keep them as strings. If that seems problematic, you have to show some code where you show how you acquire the data (say, from initializing a string), how you unpack it, and what you want to do with it in the end.&lt;/p&gt;
&lt;p&gt;If you want "the values" as "number", then you have to unpack them from the string. As long as you are dealing with four-byte numbers, or your Perl and the C program have the same interpretation of the &lt;c&gt;long&lt;/c&gt; type, there will be no loss of accuracy.&lt;/p&gt;
&lt;p&gt;As for your questions about alignment etc., that is what [mod://Convert::Binary:C] is set up to handle.&lt;/p&gt;</field>
<field name="root_node">
996521</field>
<field name="parent_node">
996758</field>
</data>
</node>
