From: raymondpendergraph@... (Ray Pendergraph) Date: 2004-10-08T23:04:44+09:00 Subject: parsing data and displaying hex I am sort of a novice to Ruby so I will just start out with a simplified example what I want to do. I have an array with two bytes in it [0x03,0x9A] and depending on what the byte order of the file (not the architecture) is want to display these bytes as 922 or 39427 (both unsigned shorts). I want to do this without reversing the index on the array or anything goofy like that. Whats the most proper way to do this in Ruby? I suspect my solution lies somewhere in pack... I toyed with it briefly but decided to ask.