Keep It Simple, Stupid | |
PerlMonks |
Re: Working with Variablesby Masem (Monsignor) |
on Apr 24, 2001 at 00:01 UTC ( [id://74846]=note: print w/replies, xml ) | Need Help?? |
It sounds like you can do one of two things:
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.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
In Section
Seekers of Perl Wisdom
|
|