in reply to Re: translate a character into a number
in thread translate a character into a number

my $char = 'A'; my $num = -64 + ord uc $char;
Won't work for EBCDIC, but I'm guessing that's not a widespread problem :)
--
Mike