Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Formatting Strings Without Interpolating Whitespace

by CountZero (Bishop)
on Jan 20, 2012 at 07:13 UTC ( #948903=note: print w/ replies, xml ) Need Help??


in reply to Formatting Strings Without Interpolating Whitespace

Why not use one of the many templating modules? I like Template Toolkit at lot, but it may be overkill for a simple application. On the other hand, "simple" applications tend to grow over time and then you are happy to have a full fledged templating engine on board.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James


Comment on Re: Formatting Strings Without Interpolating Whitespace
Re^2: Formatting Strings Without Interpolating Whitespace
by BJ_Covert_Action (Beadle) on Jan 20, 2012 at 18:54 UTC

    Thanks for the tip and link Count. I tend to use my old SOPW write-ups as design notes for my programs as I evolve them. And now I have a handy trail to start following once I get around to implementing templating.

    Cheers!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://948903]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
As of 2014-08-27 16:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (244 votes), past polls