|Just another Perl shrine|
convert letters into a numberby steph_bow (Pilgrim)
|on Aug 30, 2007 at 09:43 UTC||Need Help??|
steph_bow has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, Dear Monks,
I would like to know if it is possible to convert letters into numbers ?
Let me explain
I would like that A => 1, B => 2, C => 3, etc ...
It is in order to compute a sum for aircraft identifiers
For example, I would like that AD3 (1 + 4 + 3) => 7
Or that FG3 ( 6 + 7 + 3) => 13
Thanks a lot