From: Michael Pope Date: 2008-07-16T13:54:08+09:00 Subject: Re: printing columns I just worked it out, I was using a + instead of the proper , to separate my text. EG: wrong way print "hi" + "fred".center(80) proper way print "hi", "fred".center(80) Michael Pope wrote: > I'm trying to print some data to the terminal in columns and haven't > seen a way to do it properly. I've tried "fred".center(80) to try and > center the text at column 80 but when I start entering data before > "fred" it starts to push "fred" over to the right. > > Is there a way to print at a specific column regardless of what text is > on the same line before hand or after? -- Posted via http://www.ruby-forum.com/.