Nice problem! I will add this to my list of exercises I use when teaching programming...
I assume your current lesson is loops. Which kind did you already learn about? (It would be too embarrassing if we would advise you some syntax which your instructor didn't already cover, wouldn't it?).
The arithmetic shouldn't be a problem at all ... remember the hex-function?
Thinking twice, it would probably best if you just show us the code you have already written - and where you have doubts... that way we could help you best, without wasting your (and our) time ...
Have fun learning!
RataIn reply to Re: Perl hex substraction
by Ratazong
in thread Perl hex substraction
by inkubus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |