Beginner wrote:
Hi,

I am being a bit lazy here. I already had this hash defined (cut & pasted from another file) and didn't want to re-type it.

my %char = (
        65 => 'a',
        66 => 'b',
        67 => 'c',
        68 => 'd',
[...]
But now I need to find the key given the value. EG: What is the ASCII value for 
'a'?
[...]

perldoc -f ord




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to