The latest official release of CPAN.pm, 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).
NUL bytes are a hacker's friend (Score:2)
NULbytes 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 forq, as it's the only character that aCstring can't contain. (Search for the string%c%s%cin perl.c [activestate.com])Re: (Score:2)
use.perl is not a bug tracker (Score:2)
Report early, report often.
Re: (Score:2)
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
Re: (Score:2)