Are you saying it's ok for binmode(DATA, ...) only to take effect partway through the data? No, that's a bug.
It doesn't matter how big the buffer is. It could be big enough to contain the entire file. The parser can't go changing bytes later in the file unless it knows it's safe to do so or it has a means of restoring them. Otherwise, it breaks DATA.
In reply to Re^7: Perl stops reading __DATA__ when meeting SUB character on Windows (commit)
by ikegami
in thread Perl stops reading __DATA__ when meeting SUB character on Windows
by yfnecz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |