in reply to translate a character into a number
my $char = 'A'; my $num = -64 + ord uc $char; $char = chr(64 + $num); # Translate back (to uppercase)
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Not under EBCDIC, but not a worry
by RMGir (Prior) on Apr 25, 2002 at 14:27 UTC | |
|
Re: Re: translate a character into a number
by NaSe77 (Monk) on Apr 25, 2002 at 09:44 UTC |