Think about it this way:
There is only one value of zero. Representing it as hex does not change
the value. When the zero is stringified, it is converted to ASCII 30. To get a
specific ASCII character, use chr(). So what you want is the ASCII NUL which is
chr(0).
- Mark.
From:
Warner, William A wrote:
When I write to a file, most everything goes in as 30 or greater. For
instance, this code:
binmode OUT_FILE;
syswrite OUT_FILE, 0x0;
Puts a 30 in the DOS debug screen’s left pane and puts a 0 in the DOS
debug’s right screen.
I