in reply to
Re: null character problem
in thread
null character problem
Thank you for you'r reply but I still have a problem with this. The reason is that the while loop stops at this Evil line! The loop is not continuing till the end of the file but stops before, somehow perl thinks this null character is the EOF.
Comment on
Re^2: null character problem
Replies are listed 'Best First'.
Re^3: null character problem
by
zentara
(Cardinal)
on Sep 05, 2007 at 13:16 UTC
You need to strip the null byte out before you run it thru the while loop.
I'm not really a human, but I play one on earth.
Cogito ergo sum a bum
[reply]
Re^4: null character problem
by
leonidlm
(Pilgrim)
on Sep 06, 2007 at 08:12 UTC
It seems I overcomed this problem by using:
binmode(LOGFILE);
[download]
Can someone explain why it worked ?
[reply]
[d/l]
In Section
Seekers of Perl Wisdom