http://www.perlmonks.org?node_id=748146


in reply to Re^4: File::Binary and Carriage-Return issue
in thread File::Binary and Carriage-Return issue

sorry about that, couldn't share the original code...

I corrected the code above - ran it and it does recreate the problem on my Windows:

% hexdump a 0000000 0a0d 0a0d 0a0d 0a0d 0a0d 0a0d 0a0d 0a0d * 00000c0 0a0d 0a0d 0a0d 0a0d 0a0d 0000 0000 0000 00000d0 0000 0000 0000 0000 0000 0000 0000 0000 * 00000f0 0000 0000 0000 0000 0000 0000 0000 0000 00000ff
Mickey