#perl - Sat 17 Mar 2007 between 19:35 and 19:48



tl2thanks all :-P
Randals/both/either/
I've used both approaches
rhizoTT2 and Mason seem too heavy weight for the purpose; something simple like HTML::Template would do just fine; or even to have a function for ea. of the page elements programmatically output markup using CGI.pm
Randalwhy is TT2 "too heavy"?
just use the parts you need, ignore the rest
LeoNerdYou must have got the leadlined one
Randalthat's like saying "perl is far too powerful for my 10-line script"
Yeah, lead-lined, to keep the nukes out
actionLeoNerd ponders the concept of a gold-plated perl script
LeoNerdponders the concept of a gold-plated perl script
rhizono need to call for excavator when a tea spoon would do nicely
then again, nothing prevents one from attaching a tea spoon to an excavator arm
RandalI don't think that's a good analogy here
Pete_Inothing like eating with a swiss army chainsaw :)
Randalotherwise, you'd throw out Perl too
for the reason I just said
so why is using TT2 for a small templating job any different from using Perl for a small scripting job?
Ani-_I think I'm becoming crazy...
Pete_IAni-_, crazy people don't think they're crazy
Ani-_There is a module (Spreadsheet::ParseExcel)... if I use 0.2603 everything works. If I use 0.28 it doesn't work. I just created a test script that tests everything I use from S::P. The test script works on both versions. :(
sidnelsonhow works stdin stdout stderr in microsoft window$$$ ??
Randalit works
see "perldoc perlport" for considerations
sidnelsonok
Randalin general, reading from STDIN waits for input, and writing to STDOUT displays it, just as you would expect
there are some minor differences of ascii vs binary files
rhizowell, installing, configuring and learning, or even just getting the hang of the basics of TT is hardly trivial, and certainly time consuming; you needn't preach to the choire, Randal,--I love TT--but for a newcommer to the templating world choosing a chainsaw tool right off the bat might going be a wee overboard
sidnelsonthanks
Ani-_Oh wait. I missed 2 values...
Randalrhizo - again, the simplest parts of TT are far easier to teach than the simplest parts of Perl
and *easier* to teach than HTML::Template, which I consider crazy
rhizoyes, that it is ;)
eightbitbastardcan I undef multiple scalars at a time?
pstickneTT2 is amazing... but it's quite large and has a compiled backend :-/
Randal[% FOR i = [1..10 %]The count is [% i %][% END %]
try that in HTML::Template
oops, but correctly. :)
eightbitbastardlike undef ($a, $b);
pstickneeightbitbastard, why do you want to do that? that just sounds like you aren't lexical'izing correctly
Randaleightbitbastard - I've typed "undef($var)" only about 5 times in 10 years

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 

IrcArchive