in reply to Re: Text::Template=>How to fill in with more than one time?
in thread Text::Template=>How to fill in with more than one time?

Hi Jeffa:

Thanks for the information. I learned something new to me from your comments. However, my original intention was not to fill in the template with complete information more than once like what you showed here. I tried to fill in the template part by part. For example, get name from one data file, fill-in the template, and then get amount from another data file, then fill in again. In the following fill-in, I like to keep the previously filled-in information. It seems not possible for the current Text::Template

Taizi
  • Comment on Re: Re: Text::Template=>How to fill in with more than one time?

Replies are listed 'Best First'.
Re: Re: Re: Text::Template=>How to fill in with more than one time?
by castaway (Parson) on Sep 05, 2003 at 08:11 UTC
    Ah, it seems I misunderstood your question as well. In that case, consider not using a HASH, but a PACKAGE instead, and just change the values you want to change in the package vars, keeping the previous ones the same. Text::Template itself has no memory function. Alternatively, you could re-use the same HASH each time, and just change the variables that are different..

    C.