Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: End Of File Marker

by myocom (Deacon)
on Aug 21, 2001 at 23:56 UTC ( #106737=note: print w/ replies, xml ) Need Help??


in reply to End Of File Marker

You might try setting binmode on your filehandle before you read from it. It will certainly let you read past the EOF marker under NT, but it may have other side effects. Only tests on your specific systems/files will tell...

Strictly speaking, though, it sounds like your "XML file that has binary material in it" isn't an XML file. It's a file that happens to contain an XML string in it. A minor-sounding (but very important) distinction.

"One word of warning: if you meet a bunch of Perl programmers on the bus or something, don't look them in the eye. They've been known to try to convert the young into Perl monks." - Frank Willison


Comment on Re: End Of File Marker

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-10-01 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (9 votes), past polls