Use a subroutine that you can pass values to and that prints everything out. You don't have to worry about storing all that text into a single variable, and you have a lot more flexibility with this method. If you go this route, you should pass any arguements you have as a signle hash so that you don't have to worry about messing up the order of the arguements.
Alternative, you could use a template module, like Template Toolkit 2 or HTML::Template, which have some basic logic structures that you can actually embed within the text to do what appear to need it to do.
In reply to Re: Working with Variables
by Masem
in thread Working with Variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |