|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Re: Requiring backtracking a certain number of timesby dragonchild (Archbishop) |
| on Apr 04, 2002 at 17:39 UTC ( #156714=note: print w/ replies, xml ) | Need Help?? |
|
In what I'm trying to do, 6491 would turn into 20, not 2. I just want the result of adding the numbers. But, what I really want is some way of addressing all the characters in a string/number, apply some function to it that returns a number, then add those numbers up. Ideally (because this is something that's useful in golfing), it would be something really small. And, yes, I remember TPR(0,1) and magic numbers. :-) ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||