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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: convert letters into a number
by GrandFather (Saint) on Aug 30, 2007 at 09:50 UTC | |
|
Re: convert letters into a number
by buzzthebuzzsaw (Acolyte) on Aug 30, 2007 at 10:53 UTC | |
|
Re: convert letters into a number
by Prof Vince (Friar) on Aug 30, 2007 at 13:46 UTC | |
|
Re: convert letters into a number
by andreas1234567 (Vicar) on Aug 30, 2007 at 11:03 UTC | |
|
Re: convert letters into a number
by isync (Hermit) on Aug 30, 2007 at 10:24 UTC | |
|
Re: convert letters into a number
by GrandFather (Saint) on Aug 30, 2007 at 20:32 UTC |