in reply to Packing floats and reversing endian

You can reverse byte order with reverse in scalar context: $str = reverse $str; which will save you the split, temp array and join.

After Compline,
Zaxo

Replies are listed 'Best First'.
Re: Re: Packing floats and reversing endian
by YuckFoo (Abbot) on Jun 06, 2003 at 17:59 UTC
    Thanks Zaxo,

    I knew I was trying to hard. I forgot about using reverse on scalars. Just what I was looking for, and fast! Thanks,

    YuckFoo