Other nice ways to format your data could be sprintf and pack/unpack.
Cheers, Sören
In reply to Re: Formatting Question by Happy-the-monk in thread Formatting Question by debiandude