Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 scrutinizing the Monastery: (2)
As of 2025-07-07 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.