good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Looking for Perl Elegance!by perlNinny (Beadle) |
on Jul 11, 2007 at 17:17 UTC ( [id://626045]=note: print w/replies, xml ) | Need Help?? |
Well the input will stream in line by line and will look something like this:
asdf asdfg=4eafvasdfadsf ashfasdf asdf qer qwer asd as dsasdi weeiwer dfhjTITLE#How are you#asdfads asdfa asdg rt wqrqw re DATA-A#item1#asdfdasfdasdasDATA-B#item2# asdfda dasfa asdfdas DATA-C#item3# aasdfDATA-A#item1a#DATA-B#item2b# asd asdf asdDATA-C#item3c# 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.
In Section
Seekers of Perl Wisdom
|
|