my $char = 'A'; my $num = -64 + ord uc $char; $char = chr(64 + $num); # Translate back (to uppercase)
--
John.
In reply to Re: translate a character into a number
by jmcnamara
in thread translate a character into a number
by NaSe77
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |