-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The template-toolkit is a great package. But watch out if you have a personal webpage that uses cpanel. I scripted my page locally using features of the template toolkit and went to upload, only to find out cpanel does not support the template-toolkit...
~ David ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rolf Banting Sent: Friday, April 01, 2005 11:21 AM To: Daniel Wilson Cc: [email protected]; [EMAIL PROTECTED] Subject: RE: A better way? templates maybe? You might want a look at the template toolkit. This kind of�problem is the reason it was invented. http://www.template-toolkit.org/ - -----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 -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQlLFe6vE15SFM+JaEQKaHwCgoYvSzBlzelCdTbeGoP98L+6QkE0AoNoe LXoI6jIVR0YDcj+EUHLLIoGh =rFLf -----END PGP SIGNATURE----- _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
