in reply to Re^2: Perl stops reading __DATA__ when meeting SUB character on Windows (history)
in thread Perl stops reading __DATA__ when meeting SUB character on Windows
That it predates your history with Perl on MS Windows (or just your memory) doesn't cause thaat history to no longer exist.
1. The OP is using binmode. That should never stop at ^Z!
2. Unless you're saying the OP is using a Perl older than 5.6, I don't see your point. I consider anything older than 5.8 irrelevant unless explicitly mentioned.
Your program produces 4 for me, whether bindmode is commented out or not (v5.12).
Then I ask you the same question I asked the OP: Could I see your perl -V output?
Update: I'm sure I had an old version of Perl that didn't treat ^Z specially, but it doesn't seem to be the case. It does appear to be a new fix, so disregard the request. I couldn't test until now.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl stops reading __DATA__ when meeting SUB character on Windows (commit)
by tye (Sage) on Jan 06, 2014 at 18:07 UTC | |
by ikegami (Patriarch) on Jan 06, 2014 at 18:24 UTC | |
by tye (Sage) on Jan 06, 2014 at 19:02 UTC | |
by ikegami (Patriarch) on Jan 08, 2014 at 14:55 UTC | |
by tye (Sage) on Jan 08, 2014 at 15:52 UTC | |
|