note
mmartin
Ok, so I modified you example a little bit. Didn't change anything except the way it's structured. The way you did it makes sense but is a little hard for me to read, and possibly maintain later if I ever have to change something.<br>
<br>
Here is what I modified to:<br>
<code>
for (my $x = $#temp; $x >= 0; $x--)
{
if ( substr($temp[$x-1][0], 0, -1) eq substr($temp[$x][0], 0, -1))
{
$temp[$x-1][1] += $temp[$x][1];
splice @temp, $x, 1;
}
}
</code>
Does the same thing just a little more long winded and simpler for a noob..<br>
<br>
<br>
Thanks Again for Your Help,<br>
Matt<br>
<br>
955598
955602