On 01/25/2007 05:36 PM, Wagner, David --- Senior Programmer Analyst ---
WGO wrote:
I currently have data for group1 which has x entries associated
with it. As I currently put out the email, the data is going down the
page. Well with the data being displayed, I thought why not have all on
same line like following:
[...]
I am at loss at how to proceed. I start one way and then it just
seems to get TOO complicated and it may be hard, but it shouldn't cause
the brain to freeze, I would think.
Line 1 of EE, ED seems pretty easy, but how to do a variable
size print and keep the columns lined up?
[...]
It sounds like you want to do transposition. In transposition, you have
a multi-dimensioned array like this:
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ],
and you change it to look like this:
[ 1, 4, 7 ],
[ 2, 5, 8 ],
[ 3, 6, 9 ],
The PDL (Perl Data Language) has a method to do this very thing, but it
only works for numbers :-(
However, a function to do transposition on strings isn't too hard to write.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/