in reply to Re^3: how to read data for every 280 character ?
in thread how to read data for every 280 character ?

How to read binary file using perl ?
  • Comment on Re^4: how to read data for every 280 character ?

Replies are listed 'Best First'.
Re^5: how to read data for every 280 character ?
by blazar (Canon) on Aug 19, 2008 at 11:06 UTC

    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";
    --
    If you can't understand the incipit, then please check the IPB Campaign.