in reply to Wierd File pipe problem...

Please provide a complete example. Put your parsing code back with your reading code, because your just creating more places for your program to go wrong. Check the status of your open as I said before. Provide some sample input and put it in a DATA section, like the following (the following is pseudo code, please fill in with actual code):
while (<DATA>) { #parse data #open output file #write data to output file } # close output file __DATA__ #some sample input
Once you turn the above into real code, if you are still having problems with it, then ask again. If you get the above working, then replace a bit at a time (e.g. open your real input source -- maybe it's the problem, and I don't know why you're using sysopen instead of open) until you get your desired result.

Replies are listed 'Best First'.
Re^2: Wierd File pipe problem...
by bferlin (Acolyte) on Dec 21, 2004 at 15:34 UTC
    I'll give that a try, however if you check my scratchpad (bferlin's scratchpad) you'll notice I have like three or four versions using open, not using open, I've tried lots of things...