in reply to Re: To read Char-by-Char from a file
in thread To read Char-by-Char from a file
In addition, if you want to read byte-by-byte instead of char-by-char (which is different due to Unicode support), it's safer to use binmode:
binmode FILE; sysread(FILE,$buffer,1);
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.
|
---|