perl11 / cperl

A perl5 with classes, types, compilable, company friendly, security
http://perl11.org/
Other
142 stars 17 forks source link

syntax error on stray nul's #345

Closed rurban closed 6 years ago

rurban commented 6 years ago

See also https://rt.perl.org/Public/Bug/Display.html?id=105920 "Perl parser sometimes tolerates stray nulls, sometimes not" and #342 e.g. $\0eq inside a string eval fails, but passes in a file, treating NUL as invisible whitespace.

revert this change. syntax error on all stray NUL's it's only purpose is as delimiter on unknown user-input: with -d or preambled or -n -p. q\0bla\0 is a legal delimiter, serving as quoting character for -F

skipspace still treats \0 as whitespace though