Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hpcc05!hpdmd48!duane From: duane@hpdmd48.boi.hp.com (duane schwartzwald) Newsgroups: comp.lang.perl Subject: Printf bug (NULL byte) Message-ID: <18510001@hpdmd48.boi.hp.com> Date: 20 Dec 90 16:14:12 GMT Organization: Hewlett Packard - Boise, ID Lines: 15 I found an apparent bug in perl the other day, while writing a printer driver. It seems that when printf (or print) is used to print binary data and that data happens to be a NULL ('\0'), the NULL byte is ignored. This is exactly the same bug I found in nawk (new awk). I deleted nawk because of this, and installed perl. I looked for some work around but ended up writing the driver in c. I like perl for this type of thing, but NEED to be able to write binary data. Does anybody have any ideas? Or a fix?