$char = chr ord $string;
But if you don't care what the character actually is you could just use ord (as tye shows above).
--
John.
In reply to Re: Matching First Character of Strings Efficiently
by jmcnamara
in thread Matching First Character of Strings Efficiently
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |