Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^2: Formatting of printed SQL Query output

by cool (Scribe)
on Jun 29, 2007 at 08:57 UTC ( #624066=note: print w/replies, xml ) Need Help??

in reply to Re: Formatting of printed SQL Query output
in thread Formatting of printed SQL Query output

You can split your out putput based on the delimiter and I hope its spaces in your case (shown as \s+ below). And print these one by one giving a tab (shown as \t) between the columns. This should provide you with some basic alignment.
foreach my $line(@query_output) { my ($comp_id,$comp_info)=split(/\s+/,<$line>); print "$comp_id\t$comp_info\n"; }
Hope it would of some help.
cheers, Syntex would be this: my ($comp_id,$comp_info)=split(/\s+/,$line);

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://624066]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-02-17 09:22 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (71 votes). Check out past polls.