in reply to Re^3: Perl hex substraction
in thread Perl hex substraction

Let's say I have these hex numbers in a list or array:
4d 2c 07 2c 77
Every number in this array should be substracted from it the next one to it like:
4d - 2c = 21
so I get my result. My solved problem is that from this array I get the result of every number bring the output of substracting the next one from itself and print the result instead the original one.

Replies are listed 'Best First'.
Re^5: Perl hex substraction
by Corion (Patriarch) on Feb 15, 2011 at 13:05 UTC

    You haven't told me how you would do it without a computer, you have just restated your problem.

    Describe the steps in English sentences. Fewer than 7 words per sentence. Only use simple steps. Prefer additional steps over more words.