in reply to How do I convert each character in a string to its ASCII value ?


The pack/unpack example shown above is a better methodology but you can also do it like this:
my @ascii = map { ord } split //, $string;


John.
--

  • Comment on Re: How do I convert each character in a string to its ASCII value ?
  • Download Code