in reply to C code translation to Perl
If you can execute both c and perl code, why don't you just put print statements at similar positions in both programs (to print out variables naturally) and just watch where a difference turns up first with the same input values. Through bisecting you should be able to pinpoint the exact line where the problem occurs
|
|---|