<?xml version="1.0" encoding="windows-1252"?>
<node id="1007529" title="Re^4: How to split an integer??" created="2012-12-06 05:51:11" updated="2012-12-06 05:51:11">
<type id="11">
note</type>
<author id="1007047">
nithins</author>
<data>
<field name="doctext">
&lt;p&gt; But my qn is i have a variable say $a= 23 , now i need to add it as  2+3 which should give me ans 5 ... hw to do this ???&lt;/P&gt;
&lt;p&gt;23 s stored as a single byte hence i cant split. But in words we can split character by character of a word in an array &lt;/p&gt;
&lt;code&gt;
my @a = qw (data);
foreach $aa(@a){
print $aa."\n";
}
&lt;/code&gt;
&lt;p&gt;the above code will not work the sane for integers&lt;/P&gt;

</field>
<field name="root_node">
1007508</field>
<field name="parent_node">
1007526</field>
</data>
</node>
