I personally believe that it has already been told you several times to read about binmode: how did it fail to answer your question? Alternatively, with a modern enough perl you can directly use a layer in the open call:
open my $fh, '<:raw', $filename or die "D'Oh! $!\n";
In reply to Re^5: how to read data for every 280 character ?
by blazar
in thread how to read data for every 280 character ?
by bh_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |