NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
A Suggestion (Score:2, Informative)
Plus it really cuts down on the hardest part of the perl-that-generates-html-that-contains-javascript-the-generates-html-that-conta
With the O'Reilly Dynamic HTML book (2nd edition) it's easy to cut th
Re:A Suggestion (Score:2)
One of my coworkers was mentioning that book today. Sigh. More money to spend.
I'll have to check out that module, too. I've not heard of it.
Re:A Suggestion (Score:2, Interesting)
Data::Locations allows you to collect text and allows you to define insertion points into which you can insert text within the main flow. It treats these as file handles you can write to. For example, I have a $style, $script, and $body handle All the HTML scaffolding around them is built at the top of my script. I can output these three blocks sequentially even though I intermingle writes to each of them throughout the course of writing my page. I then dump the location buffer and get a page.
Of course this has the bad effect that I can't flush the buffer to give the appearence of progress to the browser, but on the other hand I generate much smaller cleaner code with 1 style and 1 script block, rather than lots of little blocks, so the page downloads faster and renders faster.
Reply to This
Parent
Re:A Suggestion (Score:2)
Is that Dynamic HTML: The Definitive Reference [oreilly.com], from O'Reilly, or is there some other book out there?
Re:A Suggestion (Score:1)