>>>>> "CH" == Chap Harrison <c...@pobox.com> writes:
CH> On Apr 25, 2011, at 10:59 AM, Uri Guttman wrote: >> another real world template is the boilerplate in contracts >> and legal documents. they have the document written out and fill in all >> the blank parts. it is a very common concept and well worth knowing how >> to do it in perl. CH> I'm fully on board now - thanks. I've had occasion to generate CH> dynamic web pages and have rolled my own crude templating methods, CH> so I get the nature of the problem. that is the whole problem. simple templating is very simple. as i said, a s/// and a hash does much of what most templating needs. but it grows quickly when you want repeated sections or nesting and other things. then a well designed template module is needed and you don't want to reinvent them. i can reinvent things because i know my version offers something different and maybe better. my experience tells me that. when i see a newbie rolling their own module or writing crazy code when good ones exist, that is a red flag. >> read the extras/cookbook.pl for >> many runnable examples which should help. CH> Yes - much easier to read :-) CH> This will be very useful to me and I appreciate not only knowing CH> about it, but having it as an example of high quality Perl as CH> well. that is what i am here to do as well as yell about not using eval string! :) thanx, uri -- Uri Guttman ------ u...@stemsystems.com -------- http://www.sysarch.com -- ----- Perl Code Review , Architecture, Development, Training, Support ------ --------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com --------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/