Re: Trying to re-arrange output of email with a list of items
- From: mumia.w.18.spam+nospam@xxxxxxxxxxxxx (Mumia W.)
- Date: Thu, 25 Jan 2007 21:54:14 -0600
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.
.
- References:
- Trying to re-arrange output of email with a list of items
- From: Wagner, David --- Senior Programmer Analyst --- WGO
- Trying to re-arrange output of email with a list of items
- Prev by Date: Re: splicing an array
- Next by Date: Re: Sending mail
- Previous by thread: Trying to re-arrange output of email with a list of items
- Next by thread: Perl Soap::Lite Help
- Index(es):