in reply to how to convert numbers to ASCII characters

ASCII covers only the range from 0 to 127. (And yes, chr and ord are the right builtins).
  • Comment on Re: how to convert numbers to ASCII characters

Replies are listed 'Best First'.
Re^2: how to convert numbers to ASCII characters
by redss (Monk) on Jan 24, 2008 at 14:37 UTC
    ok that is fine if ASCII only covers 0-127. The file I write to can be a binary file rather than ascii, so will the same functions work in that case?
      Yes, they will work. Perl uses Latin1 in the range 0..255.
        that worked great, THANKS!