loody wrote:
Dear all:
Hello,
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 "!="?
Yes. John -- Perl isn't a toolbox, but a small machine shop where you can special-order certain sorts of tools at low cost and in short order. -- Larry Wall -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/