in reply to Re^6: Perl stops reading __DATA__ when meeting SUB character on Windows (commit)
in thread Perl stops reading __DATA__ when meeting SUB character on Windows
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Perl stops reading __DATA__ when meeting SUB character on Windows (commit)
by tye (Sage) on Jan 08, 2014 at 15:52 UTC | |
by ikegami (Patriarch) on Jan 08, 2014 at 20:20 UTC | |
by tye (Sage) on Jan 09, 2014 at 08:51 UTC |
In Section
Seekers of Perl Wisdom