in reply to Spaces Between Chars While Reading File

I would say you have an encoding problem (like your file is in UTF-16 encoding, and your program is garbling it). In vi, what is the encoding your file says it is? (":set fenc?" will tell) if it really is utf-16 (or ucs-2, etc), the solution is to
binmode MYQUEUE, ':encoding(utf16)';
before the read...
[]s, HTH, Massa (κς,πμ,πλ)

Replies are listed 'Best First'.
Re^2: Spaces Between Chars While Reading File
by Godsrock37 (Sexton) on Aug 04, 2008 at 15:47 UTC

    The encoding was in fact usc-2... thank you very much sir

    I'll try the code included... thanks again