in reply to Re^2: Reading Binary files in Perlin thread Reading Binary files in Perl
A hash is not ordered, so it makes no sense to read the (ordered) elements from a file in a foreach loop over the hash keys.