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


Its Huawei NGN data.. do you familiar with it ?
Actually it is a binary data...

i used xxd command first to convert from bin to hex then i used perl to read the data..

is it a good idea ?

  • Comment on Re^2: how to read data for every 280 character ?

Replies are listed 'Best First'.
Re^3: how to read data for every 280 character ?
by Anonymous Monk on Aug 18, 2008 at 08:10 UTC
    Don't bother using xxd. Perl can read in binary files just fine if you use binmode.
      How to read binary file using perl ?

        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.