Don't forget binmode and possibly a proper I/O layer .
See:
Maybe also take a look at:In reply to Re: how to read binary file and give a binary output?
by mr_mischief
in thread how to read binary file and give a binary output?
by perllearn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |