Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: how to convert numbers to ASCII characters

by moritz (Cardinal)
on Jan 24, 2008 at 14:05 UTC ( [id://664029]=note: print w/replies, xml ) Need Help??


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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://664029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-16 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found