From: "DanDiebolt.exe" Date: 2009-04-22T21:32:58+09:00 Subject: Re: convert 7 in 07 --0-1772746274-1240403576=:86653 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >*'s suggestion is the simplest Well I just picked it up on one of the n-tips for ruby lists. This isn't th= e list I originally studied but it does contain the same idea in tip #9: 9. Pretty print strings decimals. The format descriptors are pretty much similar to those used in C=E2=80=99s printf so I won=E2=80=99t go into= details. my_string =3D "%01d %06d %02d" % [type, code, age] =20 http://alexbrie.net/2002/10-ruby-programming-tips-you-should-already-know/ These lists are an invaluable resource to improve your code. --0-1772746274-1240403576=:86653--