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 ]

bart (450)

Journal of bart (450)

Tuesday March 04, 2008
03:13 PM weirdness

[ #35835 ]

The latest official release of, version 1.9205, contains a null byte in its source file.

I am somewhat surprised that perl doesn't trip over it, as there have been far more innocuous things that have made it stumble in the past, like line endings of another platform (Mac/Unix).

In case you're wondering: it's in sub CPAN::Shell::recent, at the start of the line with contents (that appear in the source only once):

$desc =~ s/.+? - //;

p.s. It still is there in the latest developer release (1.92_57).

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.
  • NUL bytes are perfectly legal inside Perl programs. The core uses them in a couple of places when creating code snippets to pass back to the interpreter, particularly as the quote character for q, as it's the only character that a C string can't contain. (Search for the string %c%s%c in perl.c [])

  • This may surprise you, but your use.perl journal is not the bug tracker. Andreas is unlikely to ever see this. It is here [] or you can send mail [mailto].

    Report early, report often.
    • It makes a great place to discuss things, though, and find out if they are really bugs or not.

      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
      • Exactly. I'm posting here to see:
        • to see if I can state my case, and
        • to check if I even have a case.