Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^7: Perl stops reading __DATA__ when meeting SUB character on Windows (commit)

by ikegami (Pope)
on Jan 08, 2014 at 14:55 UTC ( #1069815=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^7: Perl stops reading __DATA__ when meeting SUB character on Windows (commit)
Select or Download Code
Re^8: Perl stops reading __DATA__ when meeting SUB character on Windows (commit)
by tye (Cardinal) on Jan 08, 2014 at 15:52 UTC

    I give up, since you aren't going to pay enough attention to even follow along effectively.

    - tye        

      binmode now *does* work properly, whatever size the buffer is. You must think it very odd that p5p was able to fix this bug! How is it that I'm the one who's not following???
        How is it that I'm the one who's not following???

        Frankly, I don't know. But you still aren't. That's okay, though; there are no practical consequences to that failure.

        Thanks for helping p5p fix something. (Seriously.)

        - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069815]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-10-02 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (65 votes), past polls