[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



    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


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00043" href="msg00043.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00016" href="msg00016.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> vinson.lists at charter.net (Jason Vinson)</li></ul></li>
<li><strong><a name="00020" href="msg00020.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
<li><strong><a name="00038" href="msg00038.html">[ale] Introduction</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00040.html">[ale] Introduction</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00042.html">[ale] Introduction</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00049.html">[ale] Introduction</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00043.html">[ale] Introduction</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00041"><strong>Date</strong></a></li>
<li><a href="threads.html#00041"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>