You have blank lines or some such garbage in @rows.
I strongly recommend that you use strictures (use strict; use warnings;). If you had warnings turned on you would have seen warnings like:
Use of uninitialized value in printf at noname.pl line 16.
interspersed through your output. Do you need to chomp your lines before they are added to the array?
In reply to Re^5: Formatting of printed SQL Query output
by GrandFather
in thread Formatting of printed SQL Query output
by vic07
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |