Rolf Banting wrote: > You might want a look at the template toolkit. This kind of problem is > the reason it was invented. > http://www.template-toolkit.org/
Please don't post in HTML - that's against charter. Please don't top-post - also against charter. Please trim off the mail headers below that you left in and the .sig at bottom and any other parts of the orig post that aren't relevent. Please make sure you leave the quoting intact so we know who said what (that's the Rolf Banting wrote: line and the > or >> or >>> lines, etc). Thanks for your cooperation. > -----Original Message----- > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > *Lloyd Sartor > *Sent:* 01 April 2005 16:39 > *To:* Daniel Wilson > *Cc:* [EMAIL PROTECTED]; > [email protected] > *Subject:* Re: A better way? templates maybe? > > > I would look at formats - see the ActiveState perlform doc page or > "Formats" section in Ch.2 (Gory Details) of Programming Perl > (O'Reilly). I have not used this feature, but report formatting is > allegedly one of the primary initial functions of PERL (Practical > Extraction and Reporting Language). > > [EMAIL PROTECTED] wrote on 04/01/2005 > 09:06:01 AM: > > > Hello > > > > I have a weird situation, it reminds me (many many years ago) of > using COBOL > > and pic statements to align data. > > > > I have to build a file containing the followingdata , to pass to GAMS > > (Mathematical Modeling Engine) > > > > JPYUSD EURUSD GBPUSD > > JPYUSD 1.000000000 0.02016 0.113887000 > > EURUSD 0.020160000 1.000000000 -0.039177000 > > GBPUSD 0.11388700 -0.0391770 1.000000000 > > > > The GAMS barfed, because the Column header are not aligned with > the data under > > it (Exactly aligned, even the "-" has to be aligned) . I could > spend allot > > of time messing with the alignment, using padding and sprintf > statements. > > > > However, I just wanted to check to see if anyone knows a better > way of > > handling this, maybe templates? > > > > Your Thoughts? > > > > Dan > > Daniel Wilson > > > > Bayesian Edge Technology & Solutions > > 90 Holiday Drive > > Suite B-1 > > Solomons, Maryland 20688 > > (410)-394-6426 Phone > > (410)-394-6425 Fax > > www.bayesianedge.com _______________________________________________ > > ActivePerl mailing list > > [email protected] > > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > > ------------------------------------------------------------------------ > > _______________________________________________ > ActivePerl mailing list > [email protected] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
