in reply to Chr and Ord
Cancel that, Windows NT uses Unicode for text files. Hmmm... perhaps use Unicode encoding and then parse the result to ASCII or Unicode, depending upon the OS?
Update: I was just wondering something. Both the Cookbook and Programming Perl state that chr and ord allow ASCII conversions. ASCII characters are represented by 7-bit binary numbers, which allows for 255 characters.
Rydor's post uses "chr(34324)" as an example. This number is significantly higher than 255, yet when I printed the above character, it printed a paragraph mark (¶). The number 34324 is therefore a valid argument. What gives?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Chr and Ord
by sean (Beadle) on Jun 16, 2000 at 05:42 UTC | |
by Ovid (Cardinal) on Jun 16, 2000 at 08:38 UTC |