[ale] Introduction
Fletch
fletch at phydeaux.org
Wed Dec 1 11:03:29 EST 2004
>>>>> "Geoffrey" == Geoffrey <esoteric at 3times25.net> writes:
Geoffrey> Fletch wrote:
>>>>>>> "Jason" == Jason Vinson <vinson.lists at charter.net> writes:
>> [...]
Jason> Maybe i'm misunderstanding the problem, but are you saying
Jason> that this is annoying:
Jason>
>> Character.getNumericValue('z')-Character.getNumericValue('a')
Jason> Lengthy yes... but doable (and not that hard!)
>> *cough*Perl*cough* ord('z') - ord('a')
Geoffrey> No, no, character - character = integer... :)
Erm, yes that's what they both do . . .
freebie:~ 784> perl -le 'print ord("z") - ord("a")'
25
freebie:~ 785> ruby -le 'print ?z - ?a'
25
--
Fletch | "If you find my answers frightening, __`'/|
fletch at phydeaux.org| Vincent, you should cease askin' \ o.O'
| scary questions." -- Jules =(___)=
| U
More information about the Ale
mailing list