Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

  (email not shown publicly)

Journal of djberg96 (2603)

Tuesday November 26, 2002
03:23 PM

Bad C influence

[ #9157 ]
Note to self: '\0' and "\0" are not the same thing.

That little mistake accounts for 99% of the difference in output size I was getting between my own program and an equivalent Perl program that simply writes "Hello" to cell 0,0 in a single spreadsheet.

I'm sure tracking down the remaining 12 byte discrepency will be about as much fun as pulling my fingernails off with a pliers.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • The Perl4 cgi-lib had the "null byte" problem in various versions of the library. Usually, people wouldn't notice when dealing with single values for a form param, but cgi-lib would separate multiple values with the ASCII zero and expect people to split on them. Needless to say, using '\0' to separate those values would produce somewhat disappointing results.