On 5 Jul 2006 at 10:56, Mumia W. wrote:

> 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

ord($letter) - I love this language. Excellent thanx.
Dp.



-- 
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