Dr.Avocado has asked for the wisdom of the Perl Monks concerning the following question:
I know how to do this for the most part; it's just the alignment of values that I'm not familiar how to do ( I want to make the rightmost character in each column line up). Since the names and values may be of different lengths, I run into difficulties trying to make organized outputs like this. Is there a way to print an output in this fashion?====================================================================== +============== Name Age Size + Score ====================================================================== +============== NameA 353 44 + 900 NameBCG 32 212 + 128 NameC 2356 32 + 99 NameD 75 328 + 1000 ====================================================================== +==============
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Aligning Text
by FunkyMonk (Bishop) on Aug 13, 2007 at 16:47 UTC | |
|
Re: Aligning Text
by duff (Parson) on Aug 13, 2007 at 17:20 UTC | |
|
Re: Aligning Text
by toolic (Bishop) on Aug 13, 2007 at 16:50 UTC | |
|
Re: Aligning Text
by thezip (Vicar) on Aug 13, 2007 at 16:52 UTC | |
|
Re: Aligning Text
by GrandFather (Saint) on Aug 13, 2007 at 21:42 UTC | |
|
Re: Aligning Text
by dwm042 (Priest) on Aug 13, 2007 at 19:22 UTC |