At 12:31 PM -0800 11/24/10, Jim Green wrote:
Hello Perl community,
here is a question I encountered dbi and till now I use brute force to
solve it, but I figured I may see better way to do it here.

in orable sqlplus If I do
select * from table, it will print out the results nicely, all
aligned.

in dbi what I do now

[lots of sprintf's snipped]

I have to figure out the column width by counting them one by one, is
there some way to use dbi and print out results nicely without doing
so?

Check out the Text::Table module, available from CPAN.


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to