Hello Chris, Monday, February 9, 2004, 5:11:34 PM, you wrote:
>> It's even simpler: simply associate the first object with the second. >> #!/usr/bin/perl >> use HTML::Template; >> my $tmpl = new HTML::Template filehandle => \*DATA; >> $tmpl->param(foo => "bar"); >> print $tmpl->output; >> my $str = "Second template: foo = <TMPL_VAR NAME=foo>\n"; >> my $copy = new HTML::Template scalarref => \$str, associate => $tmpl; >> print $copy->output; I think that this can be done more simply: my $copy = new HTML::Template associate => $tmpl; but if I'm not mistaken, when you will call $tmpl->param(foo => 'bar') later, you'll get this param also in $copy -- Best regards, Горький Юрий mailto:[EMAIL PROTECTED] ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users