good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: LaTeX Wizardby linuxer (Curate) |
on Sep 03, 2008 at 14:50 UTC ( [id://708774]=note: print w/replies, xml ) | Need Help?? |
For printing multiple lines of static content (static that you don't have to check a condition if you want to print that), you can use HERE-documents.
But all these solutions lead to CountZero's answer. Have you already considered his tip about using a templating system? You create a template with all the static content you have. Additional point (not related to the templates): If you open a file for writing, you should check that the open was successful:
You should also check the success of all prints and the final close on that handle OUT.
If you manage to reduce the number of prints these checks aren't too bad ;o)
In Section
Cool Uses for Perl
|
|