I searched the back dated material but was unable to find this question.
I am processing an XML file that has binary material in it (the binary material is outside the global tags). Basically, I've made my input seperator the closing global XML tag </AuditData>. I then, strip everything up until the opening global XML tag off. This works really well (the problem isn't big enough to require a solution using any of the wonderful XML parsers Perl offers - no sarcasm, I love using XML::Parser and XML::Twig). Now for the problem.
One of the bits of the binary data is a ^Z (<CTRL> Z). The program breaks the while loop when it finds this. Under Linux and Tru64, the program runs great (I develop on Slackware 8.0). But, under NT -- which is where the program will reside -- it exits. Is there a way around this. My guess is that there exists a Special Charater that is the end of file marker for whatever OS you're on.