I was wanting to write a quick little subnet calculator, but I'm having 
trouble figuring out how to get the ip address to binary.  Given 
10.159.23.185, the right answer is "00001010.10011111.00010111.10111001".  I 
try using "10.159.23.185".unpack("B8B8B8B8"), but receive ["00110001", 
"00110000", "00101110", "00110001"] as my answer, which obviously doesn't 
match up.  What am I doing wrong?

Thanks!

_________________________________________________________________
Tired of slow downloads? Compare online deals from your local high-speed 
providers now.  https://broadband.msn.com