in reply to read + unpack

Depending on the system you're on, you may also need to do binmode(BIN_DATA) after you open() it. It's good practice to do this regardless when working with binary files for portability's sake. -Greg

Replies are listed 'Best First'.
Re^2: read + unpack
by andri85 (Novice) on May 06, 2009 at 21:09 UTC
    It was not in the portion of the code I pasted but I did use binmode(BIN_DATA).