|We don't bite newbies here... much|
Re^2: Looking for Perl Elegance!by perlNinny (Beadle)
|on Jul 11, 2007 at 17:17 UTC||Need Help??|
Well the input will stream in line by line and will look something like this:
asdf qer qwer
asd as dsasdi weeiwer dfhjTITLE#How are you#asdfads
asdf asdf3132 adsf TITLE#I am fine#ads fadsfdasfdas
ect but that doesn't strike me as an elegant way to do this. The output would be like using a print statement. I was looking at using perlform for the output. To do that, I will need to get all the data first, figure out the max length of each item like:
max length of 'how are you', 'i am fine'
max length of 'item1', 'item1a', 'item4'
max length of 'item2', 'item2b', 'item5'
max length of 'item3', 'item3c', 'item6'
then use that to format the output. I can't get a good example on the forum here without using html which might be part of the confusion. No CSV, no sorting...just display it on the screen using a print statement but make it pretty like a table.
I hope that answers the questions.
THANKS for the help on this.