Hi Perl Monks,
I am new to Perl and I have one real-time problem, could someone help me.
For one of my testing project I need to read through hex file, and at a particular location in the file have to know the hex value present, and compare it with the value expected and print the result and the actual value present there. If the expected value is not present, go for comparison operation and look for value +/- 10 to the expected value.
Please find the basic Algorithm for this problem below.
Take Hex file as an input.
Read particular location in the file.
Print the value present in that location.
Compare the value present in the location with the expected value.
If both are marching print the pass result.
If value are not marching go range operation and find out the value is within +/- 10 rage of expected.
If present print pass and print the value.
Jump to other location in the file and perform the same operation.