in reply to Re^2: Formatting of printed SQL Query output
in thread Formatting of printed SQL Query output
I doubt very much that your data arrives as strings, but you've not given us anything else so:
use strict; use warnings; my @rows = ( '16444 3M Singapore', '10167 ABB Schweiz (CHHOS) - SAP', '13916 ABB Turbo Systems AG - LVS', '10163 ABB Turbo Systems AG - SAP', '8683 ABC', ); printf "%6d %s\n", split ' ', $_, 2 for @rows;
Prints:
16444 3M Singapore 10167 ABB Schweiz (CHHOS) - SAP 13916 ABB Turbo Systems AG - LVS 10163 ABB Turbo Systems AG - SAP 8683 ABC
See printf.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Formatting of printed SQL Query output
by ww (Archbishop) on Jun 29, 2007 at 14:07 UTC | |
|
Re^4: Formatting of printed SQL Query output
by vic07 (Initiate) on Jul 03, 2007 at 04:44 UTC | |
by GrandFather (Saint) on Jul 03, 2007 at 04:52 UTC |