From: Bill Guindon Date: 2004-09-19T13:05:38+09:00 Subject: Re: bug bytes On Sun, 19 Sep 2004 12:45:56 +0900, Markus wrote: > Bill -- > > In addition to the code for hex dumping you just posted (which I > gather is working as you'd like it to) could you post the code that > _isn't_ working the way you want? Specifically, it might be instructive > to see how the file is opened, set to binmode, written to, reread, and > dumped, since any of these may be the source of the problem. > > Also: > > * Are you setting "$\"? > * Are you using print (not puts)? > * Have you tried using syswrite instead (if you try it, be sure to > change _all_ writes to the file, since (IIRC) it is unbuffered). > * Have you tried using write? > > -- Markus Turns out I was wrong... it lacked the (very important for Win) .binmode Seems I lost it while refactoring, when added back, one of my many test files had the correct field specs, and was able to save data. My apologies for the false alarm -- but I'm still hating the 'pack' statement, so I refuse to apologise to it ;) -- Bill Guindon (aka aGorilla)