in reply to Convert from Alphabet "one" to numeric "1"
%Alphabet = ('one' => 1, 'two' => 2, 'three' => 3); print $Alphabet{"one"}; print $Alphabet{$Written_number};
You could add the remaining 7 numbers easily.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Convert from Alphabet "one" to numeric "1"
by ikegami (Patriarch) on Aug 25, 2009 at 06:31 UTC | |
|