Dear all:
I try to use perl to compare 2 binary files, one is display content
dump from Dram and another is display content calculated by my c-model
code.

I use open and binmode to open these 2 files, and use programs as
below to do the comparison:

           $num_pattern=read PATTERN, $tmp_gold, $file_resolution_w[$idx];
           $num_dram=read DRAM, $tmp_result, $file_resolution_w[$idx];

            if($tmp_gold!=$tmp_result)
            {
                print "\ncompare error\n";
            }

But I found the read operation seems treat the $tmp_gold and
$tmp_result as char * in c.
Does that mean I should use "ne" instead of "!="?
appreciate your help,
miloody

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to