|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: delete FF's from a fileby Lotus1 (Hermit) |
| on Feb 11, 2013 at 15:25 UTC ( #1018163=note: print w/ replies, xml ) | Need Help?? |
|
i have this file in binmode (its hex bin)... This is a common source of confusion that people think processors use hexidecimal internally. The processor uses binary and the file is in binary. Hexidecimal is a representation shown on the screen or in a string, etc. that is easier for humans to use than binary. Searching for 'FF's in a binary file is not what you want. You want the binary value represented by the hex number 'FF'.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||