in reply to Re^5: Bit handling in Perl
in thread Bit handling in Perl
Dear Monks, I used pack to write a binary file from the csv file and then used vec to compare the bit strings. Interestingly few lines were not getting written as it is in bit file. Some of the 1s were getting written as 0s in those lines. I am not sure why this happens!Also in the binary file the single bit string is getting stored in two lines while the other strings are written in only one line. Can any one please clarify? Thanks!
This is one such line that gave an issue:
111000000111101100110001100000000100010000000000000000000000 000000000000000000000000000000000000000000000000000000000000 000000000000000000000001000011000000000000000000000000000010 001111000100100000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000011111000001100001 000001000000000000000000000000001100000011101100010111011011 001011001011111111110000110111101100100110010000000000101010 100000000010101101100111011101100100010100001100001010000000 001010011011010100000111101000000000100111011001101000010010 100001100110110110001000100000101000111110101100000110011111 100100011000010000100001100010000110100010010000000000101100 100011001001111001110001110010001000110000001000111010000100 000000000000000001000000000000000000000000000000000000000000 10000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Bit handling in Perl
by BrowserUk (Patriarch) on Oct 25, 2014 at 14:22 UTC | |
by roboticus (Chancellor) on Oct 25, 2014 at 16:17 UTC | |
by vaidhy_m (Novice) on Oct 26, 2014 at 04:35 UTC | |
by BrowserUk (Patriarch) on Oct 26, 2014 at 14:06 UTC | |
by vaidhy_m (Novice) on Oct 27, 2014 at 11:57 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2014 at 14:54 UTC | |
|