in reply to Re^2: Perl hex substraction
in thread Perl hex substraction
Based on your nodes -- above and below -- I suspect you really, really need to read On asking for help and How do I post a question effectively?.
In fact, reading the next few sentences may illuminate your quest:
You'll get better answers here if you show that you've made some legitimate effort to solve your own problem. IOW, show us some code and explain how it fails and what error messages and warnings you see. And if you know nothing about programing, at least answer questions like Corion's -- write up a (structured) little list of the steps by which you could solve your problem with pencil and paper (for a liberal definition of "pencil and paper").
The above answer doesn't do that. But the balance of your interactions in this thread might have gone better had you answered something like this:
- Subtract the second number from the first; save the difference somewhere
- Subtract the third number from the second; save the difference...
- and so on... until...
- Subtract ZERO from the last number and save the difference (or, phrased another way, 'simply save the last number').
That's a simple-minded (and only partial) algorithm to address your request; translating that to code in any language is (just) a matter of matering the language.
And we're here to help when some aspect of the language stumps you... but we're not here to write your code.
|
|---|