in reply to Re: Using '/r' with '~~ $var' in format--"formats on the fly"
in thread Using '/r' with '~~ $var' in format

What about ditching format? It sounds like your needs will be surpassing what format will do easily (and more importaintly if you do pull it off, it sounds like a maintainence nightmare).

Template Toolkit sounds like a great fit for you. TT is designed to template any job not just HTML (as long as you don't need pagination)



grep
Mynd you, mønk bites Kan be pretti nasti...
  • Comment on Re: Re: Using '/r' with '~~ $var' in format--"formats on the fly"

Replies are listed 'Best First'.
Re: Using '/r' with '~~ $var' in format--"formats on the fly"
by ff (Hermit) on Nov 05, 2002 at 06:28 UTC
    It looks like Template Toolkit will be useful for the next stage in my process in which I officially present the data and the user doesn't need it in Word. Thanks for the tip. For this particular stage, I just need to create a rough draft and using 'format' statements will be sufficient (esp. since I've already written the code :-) So the question remains, how might I use \r to achieve embedded newlines that will be respected by '~~ $var' lines within a format statement?