* Brian Mitchell <binary42 / gmail.com> [2005-05-24 02:53:52 +0900]:

> I have a number I must convert to a network long. I have been using
> this thus far with success:
> 
>  [number].pack("N")
> 
> for 65 it should return "\000\000\000A". It does so on my linux boxes,
> an iMac with 10.3 but on my Powerbook with 10.4 it returns the reverse
> "A\000\000\000". What is causing this. Did Apple mess up yet again
> with including ruby? Could someone duplicate this on tiger?
 
Hmm, What do your machines (specifically the iMac) return for this:

  BigEndian    = (0 == [1].pack('l')[0])
  LittleEndian = (1 == [1].pack('l')[0])

-- 
Jim Freeze
Ruby: I can explain it to ya but I can't understand it fer ya.