On Dec 18, 2003, at 12:03 AM, Bill Jastram wrote:

James:

I'm happy to help, but keep your replies on the list so we can all learn/help.


Can printf set the value in spaces of tab (\t)? I need to do three column
output with perl for mailing labels.

You bet:


>perl -e 'printf "%20s %20s %20s\n", "James", "Edward", "Gray"'
               James               Edward                 Gray

Three columns of 20 character width right there. Does that answer your question?

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to