From: "Collins, Joe (EDSI\\BDR)" <[EMAIL PROTECTED]> > How can I convert the scalar 'A' (or 'a') to 1, 'B' to 2 and so on? > Related: how do I get the true internal value for A, i.e. ascii > value?
$num = ord($char) - ord('A') + 1 or if you do it often my $char_base = ord('A') - 1; ... $num = ord($char) - $char_base; Jenda =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain. I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]