This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I need to read an xml file into an html page using Perl. When someone reads the page, I want to select an xml file based on its filename and the current date, read its contents, probably do an xsl transform, and push the results into element X in the html file on the fly. (In other words the html file contains a placeholder where the transform results should go. I don't want the page itself modified permanently.) I know about XSL but all I know about Perl is the Llama book. What should I read next to learn how to do this?
99% of my perl research is done using the O'reilly "Learning Perl" book. IMHO, it has almost everything you need in it.
"placeholder" to me implies using a format...but I don't know much about xml, xsl, or html. I do know perl is great for parsing and formatting. You many want to search cpan for modules to help with the parsing, or search around at perlmonks to see if anyone there has asked a similar question.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Learning Perl was already mentioned, but one of the better starting resources I have found is Modern Perl by Chromatic. It gives a good, concise overview to how you should be writing Perl. Another good resource is Perl Best Practices by Damian Conway. It might be more of a reference, but has really good examples of bad Perl and good Perl.
"If the facts don't fit the theory, get new facts" --Albert Einstein
If you must buy a book, I'd say it should be some kind of reference manual, that can be easily referred to while actually writing Perl scripts; the more succinct, the better. My (personal) experience is that thick, verbose introductory tomes on whatever programming language are not very useful - something I rather wish I'd learned before spending my money on them. My copy of K&R C sees more use as a reference manual for instance than any of my texts on Perl or shell scripting, even though I barely ever use C.
OTOH, if you're doing XML/HTML anything then you're probably a better programmer than I am, so take the above with a grain of salt...
Edit: sorry, didn't realize this thread was a month old. D'oh!